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

FEAT #11691 TIME 0:40 SQL

parent 006dfcdd
No related branches found
No related tags found
No related merge requests found
......@@ -232,6 +232,11 @@ DO $$ BEGIN
END$$;
/* ATTACHMENTS */
ALTER TABLE res_attachments DROP COLUMN IF EXISTS origin_id;
ALTER TABLE res_attachments ADD COLUMN origin_id INTEGER;
/* MLB COLL EXT */
DO $$ BEGIN
IF (SELECT count(attname) FROM pg_attribute WHERE attrelid = (SELECT oid FROM pg_class WHERE relname = 'res_letterbox') AND attname = 'category_id') = 0 THEN
......
......@@ -274,6 +274,7 @@ CREATE TABLE res_attachments
dest_user character varying(128) DEFAULT NULL::character varying,
coll_id character varying(32) NOT NULL,
res_id_master bigint,
origin_id INTEGER,
attachment_type character varying(255) DEFAULT NULL::character varying,
dest_contact_id bigint,
dest_address_id bigint,
......
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