|
1
|
import { Migration } from "@medusajs/framework/mikro-orm/migrations" |
|
2
|
|
|
3
|
export class Migration20260626000000 extends Migration { |
|
4
|
override async up(): Promise<void> { |
|
5
|
this.addSql( |
|
6
|
`alter table if exists "cart_line_item_tax_line" add column if not exists "data" jsonb null;` |
|
7
|
) |
|
8
|
this.addSql( |
|
9
|
`alter table if exists "cart_shipping_method_tax_line" add column if not exists "data" jsonb null;` |
|
10
|
) |
|
11
|
} |
|
12
|
|
|
13
|
override async down(): Promise<void> { |
|
14
|
this.addSql( |
|
15
|
`alter table if exists "cart_line_item_tax_line" drop column if exists "data";` |
|
16
|
) |
|
17
|
this.addSql( |
|
18
|
`alter table if exists "cart_shipping_method_tax_line" drop column if exists "data";` |
|
19
|
) |
|
20
|
} |
|
21
|
} |