* chore(): Move peer deps into a single package and re export from framework * WIP * update core packages * update cli and deps * update medusa * update exports path * remove analyze * update modules deps * finalise changes * fix yarn * fix import * Refactor peer dependencies into a single package Consolidate peer dependencies into one package and re-export from the framework. * update changeset * Update .changeset/brown-cows-sleep.md Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com> * rm deps * fix deps * increase timeout * upgrade version * update versions * update versions * fixes * update lock * fix missing import * fix missing import --------- Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
28 lines
1.2 KiB
TypeScript
28 lines
1.2 KiB
TypeScript
import { Migration } from "@medusajs/framework/mikro-orm/migrations"
|
|
|
|
export class Migration20241206101446 extends Migration {
|
|
async up(): Promise<void> {
|
|
this.addSql(
|
|
`DROP INDEX IF EXISTS "IDX_workflow_execution_id";
|
|
DROP INDEX IF EXISTS "IDX_workflow_execution_workflow_id";
|
|
DROP INDEX IF EXISTS "IDX_workflow_execution_transaction_id";
|
|
DROP INDEX IF EXISTS "IDX_workflow_execution_state";`
|
|
)
|
|
this.addSql(
|
|
'CREATE INDEX IF NOT EXISTS "IDX_workflow_execution_deleted_at" ON "workflow_execution" (deleted_at) WHERE deleted_at IS NULL;'
|
|
)
|
|
this.addSql(
|
|
'CREATE INDEX IF NOT EXISTS "IDX_workflow_execution_id" ON "workflow_execution" (id) WHERE deleted_at IS NULL;'
|
|
)
|
|
this.addSql(
|
|
'CREATE INDEX IF NOT EXISTS "IDX_workflow_execution_workflow_id" ON "workflow_execution" (workflow_id) WHERE deleted_at IS NULL;'
|
|
)
|
|
this.addSql(
|
|
'CREATE INDEX IF NOT EXISTS "IDX_workflow_execution_transaction_id" ON "workflow_execution" (transaction_id) WHERE deleted_at IS NULL;'
|
|
)
|
|
this.addSql(
|
|
'CREATE INDEX IF NOT EXISTS "IDX_workflow_execution_state" ON "workflow_execution" (state) WHERE deleted_at IS NULL;'
|
|
)
|
|
}
|
|
}
|