Skip to content

Commit b0ab0f7

Browse files
authored
fix(sql): missing workflow_node_run_job default values (#5104)
1 parent 11d98eb commit b0ab0f7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
-- +migrate Up
2+
UPDATE workflow_node_run_job SET hatchery_name = '' WHERE hatchery_name is NULL;
3+
UPDATE workflow_node_run_job SET worker_name = '' WHERE worker_name is NULL;
4+
5+
ALTER TABLE workflow_node_run_job ALTER COLUMN hatchery_name SET DEFAULT '';
6+
ALTER TABLE workflow_node_run_job ALTER COLUMN worker_name SET DEFAULT '';
7+
8+
-- +migrate Down
9+
SELECT 1;

0 commit comments

Comments
 (0)