Added SQL migration to add "parameters" column to workflow_template_versions

table.
This commit is contained in:
Aleksandr Melnikov
2020-07-27 17:41:18 -07:00
parent 8e9e51fc5e
commit 276f084fab

View File

@@ -0,0 +1,7 @@
-- +goose Up
ALTER TABLE workflow_template_versions ADD COLUMN parameters JSONB;
UPDATE workflow_template_versions SET parameters = '[]'::JSONB;
ALTER TABLE workflow_template_versions ALTER COLUMN parameters SET NOT NULL;
-- +goose Down
ALTER TABLE workflow_template_versions DROP COLUMN parameters;