1 import { Migration } from "@medusajs/framework/mikro-orm/migrations"
2
3 export class Migration20260625000000 extends Migration {
4 override async up(): Promise<void> {
5 this.addSql(
6 `alter table if exists "order_line_item_tax_line" add column if not exists "metadata" jsonb null;`
7 )
8 this.addSql(
9 `alter table if exists "order_line_item_tax_line" add column if not exists "data" jsonb null;`
10 )
11 this.addSql(
12 `alter table if exists "order_shipping_method_tax_line" add column if not exists "metadata" jsonb null;`
13 )
14 this.addSql(
15 `alter table if exists "order_shipping_method_tax_line" add column if not exists "data" jsonb null;`
16 )
17 }
18
19 override async down(): Promise<void> {
20 this.addSql(
21 `alter table if exists "order_line_item_tax_line" drop column if exists "data";`
22 )
23 this.addSql(
24 `alter table if exists "order_line_item_tax_line" drop column if exists "metadata";`
25 )
26 this.addSql(
27 `alter table if exists "order_shipping_method_tax_line" drop column if exists "data";`
28 )
29 this.addSql(
30 `alter table if exists "order_shipping_method_tax_line" drop column if exists "metadata";`
31 )
32 }
33 }