Raw
1 import { Migration } from "@medusajs/framework/mikro-orm/migrations"
2
3 export class Migration20250326151554 extends Migration {
4 override async up(): Promise<void> {
5 this.addSql(
6 `alter table if exists "order_line_item" add column if not exists "is_giftcard" boolean not null default false;`
7 )
8 }
9
10 override async down(): Promise<void> {
11 this.addSql(
12 `alter table if exists "order_line_item" drop column if exists "is_giftcard";`
13 )
14 }
15 }