From c96102019d6a0f412105c261529b3a61f269b636 Mon Sep 17 00:00:00 2001 From: Damien <damien.burel@maarch.org> Date: Thu, 19 Dec 2019 18:20:07 +0100 Subject: [PATCH] FEAT #12224 TIME 0:05 Refactoring resource custom fields sql --- sql/structure.sql | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/sql/structure.sql b/sql/structure.sql index 0b2833882b5..9a4a7a1c4dc 100755 --- a/sql/structure.sql +++ b/sql/structure.sql @@ -993,6 +993,7 @@ CREATE TABLE res_letterbox flag_alarm2 char(1) default 'N'::character varying, address_id bigint, model_id integer NOT NULL, + custom_fields jsonb, CONSTRAINT res_letterbox_pkey PRIMARY KEY (res_id) ) WITH (OIDS=FALSE); @@ -1418,17 +1419,6 @@ CREATE TABLE custom_fields ) WITH (OIDS=FALSE); -CREATE TABLE resources_custom_fields -( - id serial NOT NULL, - res_id INTEGER NOT NULL, - custom_field_id INTEGER NOT NULL, - value jsonb NOT NULL, - CONSTRAINT resources_custom_fields_pkey PRIMARY KEY (id), - CONSTRAINT resources_custom_fields_unique_key UNIQUE (res_id, custom_field_id) -) -WITH (OIDS=FALSE); - CREATE TABLE indexing_models ( id SERIAL NOT NULL, -- GitLab