|
1
|
import { Migration } from "@medusajs/framework/mikro-orm/migrations"; |
|
2
|
|
|
3
|
export class Migration20250120110514 extends Migration { |
|
4
|
|
|
5
|
async up(): Promise<void> { |
|
6
|
this.addSql('CREATE INDEX IF NOT EXISTS "IDX_notification_provider_deleted_at" ON "notification_provider" (deleted_at) WHERE deleted_at IS NULL;'); |
|
7
|
|
|
8
|
this.addSql('CREATE INDEX IF NOT EXISTS "IDX_notification_deleted_at" ON "notification" (deleted_at) WHERE deleted_at IS NULL;'); |
|
9
|
} |
|
10
|
|
|
11
|
async down(): Promise<void> { |
|
12
|
this.addSql('drop index if exists "IDX_notification_provider_deleted_at";'); |
|
13
|
|
|
14
|
this.addSql('drop index if exists "IDX_notification_deleted_at";'); |
|
15
|
} |
|
16
|
|
|
17
|
} |