diff --git a/engine/sql/210_worker_fix_hatchery_name.sql b/engine/sql/210_worker_fix_hatchery_name.sql new file mode 100644 index 0000000000..b4ac91ff17 --- /dev/null +++ b/engine/sql/210_worker_fix_hatchery_name.sql @@ -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;