Files
medusa-store/packages/modules/workflow-engine-inmemory/src/migrations/Migration20250819104213.ts
Adrien de Peretti 5b135a41fe fix(): workflow engine migration issue (#13629)
**What**
The extension creation have been pushed by mistake
2025-09-30 15:41:09 +00:00

14 lines
440 B
TypeScript

import { Migration } from "@medusajs/framework/mikro-orm/migrations"
export class Migration20250819104213 extends Migration {
override async up(): Promise<void> {
this.addSql(
`CREATE INDEX IF NOT EXISTS "IDX_workflow_execution_run_id" ON "workflow_execution" (run_id) WHERE deleted_at IS NULL;`
)
}
override async down(): Promise<void> {
this.addSql(`drop index if exists "IDX_workflow_execution_run_id";`)
}
}