fix: remove fk constraint on crons (#1543)

This commit is contained in:
abelanger5
2025-04-14 09:59:27 -04:00
committed by GitHub
parent 90805ca763
commit 7190078b8d

View File

@@ -0,0 +1,9 @@
-- +goose Up
-- +goose StatementBegin
ALTER TABLE "WorkflowRunTriggeredBy" DROP CONSTRAINT "WorkflowRunTriggeredBy_cronParentId_cronSchedule_cronName_fkey";
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
ALTER TABLE "WorkflowRunTriggeredBy" ADD CONSTRAINT "WorkflowRunTriggeredBy_cronParentId_cronSchedule_cronName_fkey" FOREIGN KEY ("cronParentId", "cronSchedule", "cronName") REFERENCES "WorkflowTriggerCronRef"("parentId", "cron", "name") ON DELETE SET NULL ON UPDATE CASCADE;
-- +goose StatementEnd