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