diff --git a/sql/develop.sql b/sql/develop.sql index 2a205684b70c5489e6fbddd33e65e81f3168be63..91795e97113829ff6938f7b7c281f09bb8ce2d85 100755 --- a/sql/develop.sql +++ b/sql/develop.sql @@ -36,7 +36,7 @@ UPDATE res_version_attachments SET fulltext_result = 'ERROR' WHERE fulltext_resu ALTER TABLE usergroups DROP COLUMN IF EXISTS can_index; ALTER TABLE usergroups ADD COLUMN can_index boolean NOT NULL DEFAULT FALSE; ALTER TABLE usergroups DROP COLUMN IF EXISTS indexation_parameters; -ALTER TABLE usergroups ADD COLUMN indexation_parameters jsonb NOT NULL DEFAULT '{"actions" : {}, "entities" : [], "keywords" : []}'; +ALTER TABLE usergroups ADD COLUMN indexation_parameters jsonb NOT NULL DEFAULT '{"actions" : [], "entities" : [], "keywords" : []}'; ALTER TABLE groupbasket DROP COLUMN IF EXISTS list_event; ALTER TABLE groupbasket ADD COLUMN list_event character varying(255); @@ -59,3 +59,4 @@ ALTER TABLE res_version_attachments DROP COLUMN IF EXISTS tnl_attempts; ALTER TABLE res_letterbox DROP COLUMN IF EXISTS tnl_result; ALTER TABLE res_attachments DROP COLUMN IF EXISTS tnl_result; ALTER TABLE res_version_attachments DROP COLUMN IF EXISTS tnl_result; +ALTER TABLE usergroups DROP COLUMN IF EXISTS enabled; diff --git a/sql/structure.sql b/sql/structure.sql index 9e27e5676f6f520e0ad5f18d0196b2efd92a58fd..a4fff8d9edd329d13295b409abc370d0a5dac9d8 100755 --- a/sql/structure.sql +++ b/sql/structure.sql @@ -189,8 +189,9 @@ CREATE TABLE usergroups ( id serial NOT NULL, group_id character varying(32) NOT NULL, - group_desc character varying(255) DEFAULT NULL::character varying, - enabled character(1) NOT NULL DEFAULT 'Y'::bpchar, + group_desc character varying(255), + can_index boolean NOT NULL DEFAULT FALSE, + indexation_parameters jsonb NOT NULL DEFAULT '{"actions" : [], "entities" : [], "keywords" : []}', CONSTRAINT usergroups_pkey PRIMARY KEY (group_id), CONSTRAINT usergroups_id_key UNIQUE (id) )