From 3b281edda85788936dbb9650c5066a5506ce62fd Mon Sep 17 00:00:00 2001 From: Damien <damien.burel@maarch.org> Date: Thu, 18 Jul 2019 17:15:26 +0200 Subject: [PATCH] FEAT #11266 TIME 0:20 Database --- sql/develop.sql | 3 ++- sql/structure.sql | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/sql/develop.sql b/sql/develop.sql index 2a205684b70..91795e97113 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 9e27e5676f6..a4fff8d9edd 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) ) -- GitLab