From 3842ba3e630e4d39dc6b054f026ba44fd1967d4c Mon Sep 17 00:00:00 2001
From: Damien <damien.burel@maarch.org>
Date: Wed, 8 Jul 2020 11:08:15 +0200
Subject: [PATCH] FEAT #14129 TIME 0:30 Minor sql update

---
 migration/20.03/2003.sql  |  4 ++++
 migration/20.03/20036.sql | 12 ++++++++++++
 2 files changed, 16 insertions(+)
 create mode 100644 migration/20.03/20036.sql

diff --git a/migration/20.03/2003.sql b/migration/20.03/2003.sql
index 1d239a975b1..15d81391a2f 100755
--- a/migration/20.03/2003.sql
+++ b/migration/20.03/2003.sql
@@ -586,6 +586,10 @@ FROM usergroups_services WHERE group_id IN (
     WHERE service_id = 'sendmail' AND group_id not in (SELECT group_id FROM usergroups_services WHERE service_id = 'manage_numeric_package')
 );
 
+DELETE FROM usergroups_services WHERE service_id = 'include_folder_perimeter';
+
+INSERT INTO usergroups_services (group_id, service_id)
+SELECT distinct(group_id), 'include_folder_perimeter' FROM usergroups_services;
 
 INSERT INTO usergroups_services (group_id, service_id)
 SELECT distinct(group_id), 'update_diffusion_indexing'
diff --git a/migration/20.03/20036.sql b/migration/20.03/20036.sql
new file mode 100644
index 00000000000..ad36436bd20
--- /dev/null
+++ b/migration/20.03/20036.sql
@@ -0,0 +1,12 @@
+-- *************************************************************************--
+--                                                                          --
+--                                                                          --
+-- Model migration script - 20.03.5 to 20.03.6                              --
+--                                                                          --
+--                                                                          --
+-- *************************************************************************--
+
+DELETE FROM usergroups_services WHERE service_id = 'include_folder_perimeter';
+
+INSERT INTO usergroups_services (group_id, service_id)
+SELECT distinct(group_id), 'include_folder_perimeter' FROM usergroups_services;
-- 
GitLab