1 import { Migration } from "@medusajs/framework/mikro-orm/migrations"
2
3 export class Migration20241014142943 extends Migration {
4 async up(): Promise<void> {
5 this.addSql(
6 'alter table if exists "order_item" add column if not exists "compare_at_unit_price" numeric null, add column if not exists "raw_compare_at_unit_price" jsonb null;'
7 )
8 }
9
10 async down(): Promise<void> {
11 this.addSql(
12 'alter table if exists "order_item" drop column if exists "compare_at_unit_price";'
13 )
14 this.addSql(
15 'alter table if exists "order_item" drop column if exists "raw_compare_at_unit_price";'
16 )
17 }
18 }