From 57835f0f710d2c7cf32f865dbf59ac2350e6de6a Mon Sep 17 00:00:00 2001
From: Florian Azizian <florian.azizian@maarch.org>
Date: Wed, 2 Jul 2014 10:33:30 +0000
Subject: [PATCH] FEAT #1380 Ajout de colonnes pour le numero recommande

---
 core/trunk/structure.sql | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/core/trunk/structure.sql b/core/trunk/structure.sql
index b7baad70940..65237bf2af8 100644
--- a/core/trunk/structure.sql
+++ b/core/trunk/structure.sql
@@ -1707,6 +1707,7 @@ CREATE TABLE res_x
   custom_t13 character varying(255) DEFAULT NULL::character varying,
   custom_t14 character varying(255) DEFAULT NULL::character varying,
   custom_t15 character varying(255) DEFAULT NULL::character varying,
+  reference_number character varying(255) DEFAULT NULL::character varying,
   tablename character varying(32) DEFAULT 'res_x'::character varying,
   initiator character varying(50) DEFAULT NULL::character varying,
   dest_user character varying(128) DEFAULT NULL::character varying,
@@ -1835,6 +1836,7 @@ CREATE TABLE res_letterbox
   custom_t13 character varying(255) DEFAULT NULL::character varying,
   custom_t14 character varying(255) DEFAULT NULL::character varying,
   custom_t15 character varying(255) DEFAULT NULL::character varying,
+  reference_number character varying(255) DEFAULT NULL::character varying,
   tablename character varying(32) DEFAULT 'res_letterbox'::character varying,
   initiator character varying(50) DEFAULT NULL::character varying,
   dest_user character varying(128) DEFAULT NULL::character varying,
@@ -3108,6 +3110,7 @@ CREATE TABLE res_business
   custom_t13 character varying(255) DEFAULT NULL::character varying,
   custom_t14 character varying(255) DEFAULT NULL::character varying,
   custom_t15 character varying(255) DEFAULT NULL::character varying,
+  reference_number character varying(255) DEFAULT NULL::character varying,
   tablename character varying(32) DEFAULT 'res_business'::character varying,
   initiator character varying(50) DEFAULT NULL::character varying,
   dest_user character varying(128) DEFAULT NULL::character varying,
@@ -3400,7 +3403,7 @@ CREATE VIEW res_view_business AS
     r.fingerprint, r.offset_doc, r.filesize,
     r.status, r.work_batch, r.arbatch_id, r.arbox_id, r.page_count, r.is_paper,
     r.doc_date, r.scan_date, r.scan_user, r.scan_location, r.scan_wkstation,
-    r.scan_batch, r.doc_language, r.description, r.source, r.author,
+    r.scan_batch, r.doc_language, r.description, r.source, r.author, r.reference_number,
     r.custom_t1 AS doc_custom_t1, r.custom_t2 AS doc_custom_t2,
     r.custom_t3 AS doc_custom_t3, r.custom_t4 AS doc_custom_t4,
     r.custom_t5 AS doc_custom_t5, r.custom_t6 AS doc_custom_t6,
@@ -3475,7 +3478,7 @@ CREATE VIEW res_view_letterbox AS
     f.folder_id, f.is_frozen as folder_is_frozen, r.path, r.filename, r.fingerprint, r.offset_doc, r.filesize,
     r.status, r.work_batch, r.arbatch_id, r.arbox_id, r.page_count, r.is_paper,
     r.doc_date, r.scan_date, r.scan_user, r.scan_location, r.scan_wkstation,
-    r.scan_batch, r.doc_language, r.description, r.source, r.author,
+    r.scan_batch, r.doc_language, r.description, r.source, r.author, r.reference_number,
     r.custom_t1 AS doc_custom_t1, r.custom_t2 AS doc_custom_t2,
     r.custom_t3 AS doc_custom_t3, r.custom_t4 AS doc_custom_t4,
     r.custom_t5 AS doc_custom_t5, r.custom_t6 AS doc_custom_t6,
-- 
GitLab