Skip to content

Commit

Permalink
fix(sql): missing workflow_node_run_job default values (#5104)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsamin authored Apr 6, 2020
1 parent 11d98eb commit b0ab0f7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions engine/sql/195_fix_workflow_node_job_run_infos.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-- +migrate Up
UPDATE workflow_node_run_job SET hatchery_name = '' WHERE hatchery_name is NULL;
UPDATE workflow_node_run_job SET worker_name = '' WHERE worker_name is NULL;

ALTER TABLE workflow_node_run_job ALTER COLUMN hatchery_name SET DEFAULT '';
ALTER TABLE workflow_node_run_job ALTER COLUMN worker_name SET DEFAULT '';

-- +migrate Down
SELECT 1;

0 comments on commit b0ab0f7

Please sign in to comment.