Skip to content

Commit

Permalink
fix(fulfillment): migration so rules (medusajs#11113)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlos-r-l-rodrigues authored Jan 23, 2025
1 parent 5aa4797 commit 3138485
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ export class Migration20250113122235 extends Migration {
override async up(): Promise<void> {
this.addSql(`
UPDATE shipping_option_rule
SET value = 'true'::jsonb
SET value = '"true"'
WHERE value = '"\\"true\\""';
`)
this.addSql(`
UPDATE shipping_option_rule
SET value = 'false'::jsonb
SET value = '"false"'
WHERE value = '"\\"false\\""';
`)
}
Expand All @@ -18,12 +18,12 @@ export class Migration20250113122235 extends Migration {
this.addSql(`
UPDATE shipping_option_rule
SET value = '"\\"true\\""'
WHERE value = 'true'::jsonb;
WHERE value = '"true"';
`)
this.addSql(`
UPDATE shipping_option_rule
SET value = '"\\"false\\""'
WHERE value = 'false'::jsonb;
WHERE value = '"false"';
`)
}
}

0 comments on commit 3138485

Please sign in to comment.