1 import { Migration } from "@medusajs/framework/mikro-orm/migrations";
2
3 export class Migration20250206141429 extends Migration {
4 override async up(): Promise<void> {
5 this.addSql(`drop index if exists "IDX_line_item_id_customer_id";`);
6 }
7
8 override async down(): Promise<void> {
9 this.addSql(
10 `CREATE INDEX IF NOT EXISTS "IDX_line_item_id_customer_id" ON "loyalty_gift_card" (line_item_id, customer_id) WHERE deleted_at IS NULL;`
11 );
12 }
13 }