From 15580e17b0f8d82f82356495f6abd56b9e760587 Mon Sep 17 00:00:00 2001
From: Henri Queneau <henri.queneau@maarch.org>
Date: Mon, 18 Jul 2016 14:34:50 +0000
Subject: [PATCH] FEAT #4374 add sve_type in sql's files

---
 core/trunk/sql/160.sql       | 11 ++++++++-
 core/trunk/sql/data_fr.sql   | 46 ++++++++++++++++++------------------
 core/trunk/sql/structure.sql |  1 +
 3 files changed, 34 insertions(+), 24 deletions(-)

diff --git a/core/trunk/sql/160.sql b/core/trunk/sql/160.sql
index 1100d8cbdec..f0f511a9030 100644
--- a/core/trunk/sql/160.sql
+++ b/core/trunk/sql/160.sql
@@ -414,4 +414,13 @@ CREATE VIEW res_view_attachments AS
 -- ************************************************************************* --
 --                               DATABASE VERSION                            --
 -- ************************************************************************* --
-UPDATE parameters SET param_value_int = 160 where id='database_version';
\ No newline at end of file
+UPDATE parameters SET param_value_int = 160 where id='database_version';
+
+
+
+
+-- ************************************************************************* --
+--                               sve mlb_doctype_ext                         --
+-- ************************************************************************* --
+
+ALTER TABLE mlb_doctype_ext ADD COLUMN sve_type varchar(255);
\ No newline at end of file
diff --git a/core/trunk/sql/data_fr.sql b/core/trunk/sql/data_fr.sql
index 483baa18cca..f22443ada10 100644
--- a/core/trunk/sql/data_fr.sql
+++ b/core/trunk/sql/data_fr.sql
@@ -688,29 +688,29 @@ INSERT INTO doctypes_indexes (type_id, coll_id, field_name, mandatory) VALUES (1
 ------------
 --MLB_DOCTYPES_EXT--
 ------------
-INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2) VALUES (1, 21, 14, 1);
-INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2) VALUES (10, 21, 14, 1);
-INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2) VALUES (15, 21, 14, 1);
-INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2) VALUES (16, 21, 14, 1);
-INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2) VALUES (17, 21, 14, 1);
-INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2) VALUES (20, 21, 14, 1);
-INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2) VALUES (25, 21, 14, 1);
-INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2) VALUES (26, 21, 14, 1);
-INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2) VALUES (27, 21, 14, 1);
-INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2) VALUES (28, 21, 14, 1);
-INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2) VALUES (30, 21, 14, 1);
-INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2) VALUES (35, 21, 14, 1);
-INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2) VALUES (40, 21, 14, 1);
-INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2) VALUES (55, 21, 14, 1);
-INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2) VALUES (60, 21, 14, 1);
-INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2) VALUES (65, 21, 14, 1);
-INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2) VALUES (66, 21, 14, 1);
-INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2) VALUES (70, 21, 14, 1);
-INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2) VALUES (75, 21, 14, 1);
-INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2) VALUES (76, 21, 14, 1);
-INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2) VALUES (80, 21, 14, 1);
-INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2) VALUES (85, 21, 14, 1);
-INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2) VALUES (90, 21, 14, 1);
+INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2, sve_type) VALUES (1, 21, 14, 1, 'normal');
+INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2, sve_type) VALUES (10, 21, 14, 1, 'normal');
+INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2, sve_type) VALUES (15, 21, 14, 1, 'normal');
+INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2, sve_type) VALUES (16, 21, 14, 1, 'normal');
+INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2, sve_type) VALUES (17, 21, 14, 1, 'normal');
+INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2, sve_type) VALUES (20, 21, 14, 1, 'normal');
+INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2, sve_type) VALUES (25, 21, 14, 1, 'normal');
+INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2, sve_type) VALUES (26, 21, 14, 1, 'normal');
+INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2, sve_type) VALUES (27, 21, 14, 1, 'normal');
+INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2, sve_type) VALUES (28, 21, 14, 1, 'normal');
+INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2, sve_type) VALUES (30, 21, 14, 1, 'normal');
+INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2, sve_type) VALUES (35, 21, 14, 1, 'normal');
+INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2, sve_type) VALUES (40, 21, 14, 1, 'normal');
+INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2, sve_type) VALUES (55, 21, 14, 1, 'normal');
+INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2, sve_type) VALUES (60, 21, 14, 1, 'normal');
+INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2, sve_type) VALUES (65, 21, 14, 1, 'normal');
+INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2, sve_type) VALUES (66, 21, 14, 1, 'normal');
+INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2, sve_type) VALUES (70, 21, 14, 1, 'normal');
+INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2, sve_type) VALUES (75, 21, 14, 1, 'normal');
+INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2, sve_type) VALUES (76, 21, 14, 1, 'normal');
+INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2, sve_type) VALUES (80, 21, 14, 1, 'normal');
+INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2, sve_type) VALUES (85, 21, 14, 1, 'normal');
+INSERT INTO mlb_doctype_ext (type_id, process_delay, delay1, delay2, sve_type) VALUES (90, 21, 14, 1, 'normal');
 
 
 ------------
diff --git a/core/trunk/sql/structure.sql b/core/trunk/sql/structure.sql
index 0fa4ea7a499..8dea0b0ab6b 100644
--- a/core/trunk/sql/structure.sql
+++ b/core/trunk/sql/structure.sql
@@ -2300,6 +2300,7 @@ CREATE TABLE mlb_doctype_ext (
   process_delay bigint NOT NULL DEFAULT '21',
   delay1 bigint NOT NULL DEFAULT '14',
   delay2 bigint NOT NULL DEFAULT '1',
+  sve_type character varying(255),
   CONSTRAINT type_id PRIMARY KEY (type_id)
 )
 WITH (OIDS=FALSE);
-- 
GitLab