From 1314ee8aded3d90ffa82aacd2961c104fee04d06 Mon Sep 17 00:00:00 2001
From: Florian Azizian <florian.azizian@maarch.org>
Date: Wed, 10 Sep 2014 10:06:48 +0000
Subject: [PATCH] FEAT #1492 verification migration.sql => structure.sql

---
 core/trunk/structure.sql | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/core/trunk/structure.sql b/core/trunk/structure.sql
index f70c431ba08..a74df21f77e 100644
--- a/core/trunk/structure.sql
+++ b/core/trunk/structure.sql
@@ -1526,7 +1526,8 @@ CREATE TABLE contacts_res
 (
   coll_id character varying(32) NOT NULL,
   res_id bigint NOT NULL,
-  contact_id character varying(128) NOT NULL
+  contact_id character varying(128) NOT NULL,
+  address_id bigint NOT NULL
  );
 
 -- contacts v2
@@ -3456,6 +3457,14 @@ CREATE TABLE fp_res_fileplan_positions
   CONSTRAINT fp_res_fileplan_positions_pkey PRIMARY KEY (res_id, coll_id, fileplan_id, position_id)
 );
 
+DROP TABLE IF EXISTS actions_categories;
+CREATE TABLE actions_categories
+(
+  action_id bigint NOT NULL,
+  category_id character varying(255) NOT NULL,
+  CONSTRAINT actions_categories_pkey PRIMARY KEY (action_id,category_id)
+);
+
 --VIEWS
 --view for demo
 DROP VIEW IF EXISTS res_view;
-- 
GitLab