Skip to content
Snippets Groups Projects
Verified Commit c9610201 authored by Damien's avatar Damien
Browse files

FEAT #12224 TIME 0:05 Refactoring resource custom fields sql

parent fba68aa9
No related branches found
No related tags found
No related merge requests found
...@@ -993,6 +993,7 @@ CREATE TABLE res_letterbox ...@@ -993,6 +993,7 @@ CREATE TABLE res_letterbox
flag_alarm2 char(1) default 'N'::character varying, flag_alarm2 char(1) default 'N'::character varying,
address_id bigint, address_id bigint,
model_id integer NOT NULL, model_id integer NOT NULL,
custom_fields jsonb,
CONSTRAINT res_letterbox_pkey PRIMARY KEY (res_id) CONSTRAINT res_letterbox_pkey PRIMARY KEY (res_id)
) )
WITH (OIDS=FALSE); WITH (OIDS=FALSE);
...@@ -1418,17 +1419,6 @@ CREATE TABLE custom_fields ...@@ -1418,17 +1419,6 @@ CREATE TABLE custom_fields
) )
WITH (OIDS=FALSE); 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 CREATE TABLE indexing_models
( (
id SERIAL NOT NULL, id SERIAL NOT NULL,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment