Skip to content

Commit

Permalink
fix(api): set hatchery_name default value for worker (#5306)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardlt authored Jul 8, 2020
1 parent b64bba5 commit 0651356
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions engine/sql/210_worker_fix_hatchery_name.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-- +migrate Up

UPDATE "worker" SET hatchery_name = '' WHERE hatchery_name IS NULL;
ALTER TABLE "worker" ALTER COLUMN hatchery_name SET DEFAULT '';

-- +migrate Down

SELECT 1;

0 comments on commit 0651356

Please sign in to comment.