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