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

FEAT #7721 SQL

parent 5ef322cf
No related branches found
No related tags found
No related merge requests found
......@@ -3,3 +3,27 @@
UPDATE actions_groupbaskets set used_in_basketlist = 'Y', used_in_action_page = 'Y' WHERE default_action_list = 'Y';
UPDATE actions_groupbaskets set used_in_action_page = 'Y' WHERE used_in_basketlist = 'N' AND used_in_action_page = 'N';
DROP TABLE IF EXISTS contacts_groups;
CREATE TABLE contacts_groups
(
id serial,
label character varying(32) NOT NULL,
description character varying(255) NOT NULL,
public boolean NOT NULL,
owner integer NOT NULL,
entity_owner character varying(32) NOT NULL,
CONSTRAINT contacts_groups_pkey PRIMARY KEY (id),
CONSTRAINT contacts_groups_key UNIQUE (label, owner)
)
WITH (OIDS=FALSE);
DROP TABLE IF EXISTS contacts_groups_lists;
CREATE TABLE contacts_groups_lists
(
id serial,
contacts_groups_id integer NOT NULL,
contact_addresses_id integer NOT NULL,
CONSTRAINT contacts_groups_lists_pkey PRIMARY KEY (id),
CONSTRAINT contacts_groups_lists_key UNIQUE (contacts_groups_id, contact_addresses_id)
)
WITH (OIDS=FALSE);
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