mirror of
https://github.com/onepanelio/onepanel.git
synced 2024-08-21 00:00:34 +08:00
9 lines
396 B
SQL
9 lines
396 B
SQL
-- +goose Up
|
|
-- SQL in this section is executed when the migration is applied.
|
|
ALTER TABLE workflow_executions ADD COLUMN metrics JSONB;
|
|
UPDATE workflow_executions SET metrics = '{}'::JSONB;
|
|
ALTER TABLE workflow_executions ALTER COLUMN metrics SET NOT NULL;
|
|
|
|
-- +goose Down
|
|
-- SQL in this section is executed when the migration is rolled back.
|
|
ALTER TABLE workflow_executions DROP COLUMN metrics; |