diff --git a/migration/20.03/2003.sql b/migration/20.03/2003.sql index 03987e3172db00962a037bcfce60e115583a3f86..4a4f163f32773da6012d0babc162d0d79588c78c 100644 --- a/migration/20.03/2003.sql +++ b/migration/20.03/2003.sql @@ -529,6 +529,7 @@ DO $$ BEGIN DELETE FROM actions_groupbaskets WHERE id_action in (SELECT id FROM actions WHERE enabled = 'N'); DELETE FROM groupbasket_redirect WHERE action_id in (SELECT id FROM actions WHERE enabled = 'N'); DELETE FROM actions WHERE enabled = 'N'; + ALTER TABLE actions ADD COLUMN required_fields jsonb NOT NULL DEFAULT '[]'; END IF; END$$; diff --git a/sql/structure.sql b/sql/structure.sql index 00f3b1e87c1a686363def5bfe57074e9899332b4..016cf7215fef754980eed9c2d4504bc131e8242b 100755 --- a/sql/structure.sql +++ b/sql/structure.sql @@ -23,6 +23,7 @@ CREATE TABLE actions action_page character varying(255), component CHARACTER VARYING (128), history character(1) NOT NULL DEFAULT 'N'::bpchar, + required_fields jsonb NOT NULL DEFAULT '[]', CONSTRAINT actions_pkey PRIMARY KEY (id) ) WITH (OIDS=FALSE);