Skip to content

Commit

Permalink
fix(fulfillment): migration so rules (medusajs#11109)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlos-r-l-rodrigues authored and jimrarras committed Jan 28, 2025
1 parent 9b7b157 commit 137d03e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/six-walls-smell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@medusajs/fulfillment": patch
---

Fix shipping option rules migration to mikro-orm v6
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,24 @@ export class Migration20250113122235 extends Migration {
this.addSql(`
UPDATE shipping_option_rule
SET value = 'true'::jsonb
WHERE value = '"true"'::jsonb;
WHERE value = '"\\"true\\""';
`)
this.addSql(`
UPDATE shipping_option_rule
SET value = 'false'::jsonb
WHERE value = '"false"'::jsonb;
WHERE value = '"\\"false\\""';
`)
}

override async down(): Promise<void> {
this.addSql(`
UPDATE shipping_option_rule
SET value = '"true"'::jsonb
SET value = '"\\"true\\""'
WHERE value = 'true'::jsonb;
`)
this.addSql(`
UPDATE shipping_option_rule
SET value = '"false"'::jsonb
SET value = '"\\"false\\""'
WHERE value = 'false'::jsonb;
`)
}
Expand Down

0 comments on commit 137d03e

Please sign in to comment.