fix(): workflow engine migration issue (#13629)
**What** The extension creation have been pushed by mistake
This commit is contained in:
committed by
GitHub
parent
0c7cbfb2e7
commit
5b135a41fe
5
.changeset/hip-brooms-listen.md
Normal file
5
.changeset/hip-brooms-listen.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@medusajs/workflow-engine-inmemory": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix(): workflow engine migration issue
|
||||||
@@ -5,13 +5,6 @@ export class Migration20250819104213 extends Migration {
|
|||||||
this.addSql(
|
this.addSql(
|
||||||
`CREATE INDEX IF NOT EXISTS "IDX_workflow_execution_run_id" ON "workflow_execution" (run_id) WHERE deleted_at IS NULL;`
|
`CREATE INDEX IF NOT EXISTS "IDX_workflow_execution_run_id" ON "workflow_execution" (run_id) WHERE deleted_at IS NULL;`
|
||||||
)
|
)
|
||||||
|
|
||||||
this
|
|
||||||
.addSql(`CREATE EXTENSION IF NOT EXISTS pgcrypto; -- required for gen_random_uuid()
|
|
||||||
`)
|
|
||||||
this.addSql(
|
|
||||||
`ALTER TABLE "workflow_execution" ALTER COLUMN "id" SET DEFAULT 'wf_exec_' || encode(gen_random_bytes(6), 'hex');`
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override async down(): Promise<void> {
|
override async down(): Promise<void> {
|
||||||
|
|||||||
Reference in New Issue
Block a user