From dc7224c6ca541af399a4df4c6302fb5ecc2a93bc Mon Sep 17 00:00:00 2001
From: Matthieu Kermagoret <mkermagoret@centreon.com>
Date: Mon, 26 Mar 2018 17:01:24 +0200
Subject: [PATCH] chore(upgrade): bump version to 2.8.21.

---
 doc/en/release_notes/centreon-2.8/centreon-2.8.21.rst   | 9 +++++++++
 doc/en/release_notes/centreon-2.8/index.rst             | 1 +
 doc/fr/release_notes/centreon-2.8/centreon-2.8.21.rst   | 9 +++++++++
 doc/fr/release_notes/centreon-2.8/index.rst             | 1 +
 www/install/insertBaseConf.sql                          | 2 +-
 www/install/sql/centreon/Update-DB-2.8.20_to_2.8.21.sql | 2 ++
 6 files changed, 23 insertions(+), 1 deletion(-)
 create mode 100644 doc/en/release_notes/centreon-2.8/centreon-2.8.21.rst
 create mode 100644 doc/fr/release_notes/centreon-2.8/centreon-2.8.21.rst
 create mode 100644 www/install/sql/centreon/Update-DB-2.8.20_to_2.8.21.sql

diff --git a/doc/en/release_notes/centreon-2.8/centreon-2.8.21.rst b/doc/en/release_notes/centreon-2.8/centreon-2.8.21.rst
new file mode 100644
index 0000000000..a74c0badd6
--- /dev/null
+++ b/doc/en/release_notes/centreon-2.8/centreon-2.8.21.rst
@@ -0,0 +1,9 @@
+###################
+Centreon Web 2.8.21
+###################
+
+Enhancements
+============
+
+Bug Fixes
+=========
diff --git a/doc/en/release_notes/centreon-2.8/index.rst b/doc/en/release_notes/centreon-2.8/index.rst
index ba224fbfba..845a9edebb 100644
--- a/doc/en/release_notes/centreon-2.8/index.rst
+++ b/doc/en/release_notes/centreon-2.8/index.rst
@@ -27,3 +27,4 @@ Please find here the release notes dedicated to the last 2.8.x version of Centre
     centreon-2.8.18
     centreon-2.8.19
     centreon-2.8.20
+    centreon-2.8.21
diff --git a/doc/fr/release_notes/centreon-2.8/centreon-2.8.21.rst b/doc/fr/release_notes/centreon-2.8/centreon-2.8.21.rst
new file mode 100644
index 0000000000..a74c0badd6
--- /dev/null
+++ b/doc/fr/release_notes/centreon-2.8/centreon-2.8.21.rst
@@ -0,0 +1,9 @@
+###################
+Centreon Web 2.8.21
+###################
+
+Enhancements
+============
+
+Bug Fixes
+=========
diff --git a/doc/fr/release_notes/centreon-2.8/index.rst b/doc/fr/release_notes/centreon-2.8/index.rst
index ba224fbfba..845a9edebb 100644
--- a/doc/fr/release_notes/centreon-2.8/index.rst
+++ b/doc/fr/release_notes/centreon-2.8/index.rst
@@ -27,3 +27,4 @@ Please find here the release notes dedicated to the last 2.8.x version of Centre
     centreon-2.8.18
     centreon-2.8.19
     centreon-2.8.20
+    centreon-2.8.21
diff --git a/www/install/insertBaseConf.sql b/www/install/insertBaseConf.sql
index 60d08e4fe6..d49f1aab68 100644
--- a/www/install/insertBaseConf.sql
+++ b/www/install/insertBaseConf.sql
@@ -2,7 +2,7 @@
 -- Insert version
 --
 
-INSERT INTO `informations` (`key` ,`value`) VALUES ('version', '2.8.20');
+INSERT INTO `informations` (`key` ,`value`) VALUES ('version', '2.8.21');
 
 --
 -- Contenu de la table `contact`
diff --git a/www/install/sql/centreon/Update-DB-2.8.20_to_2.8.21.sql b/www/install/sql/centreon/Update-DB-2.8.20_to_2.8.21.sql
new file mode 100644
index 0000000000..dccabf1b4a
--- /dev/null
+++ b/www/install/sql/centreon/Update-DB-2.8.20_to_2.8.21.sql
@@ -0,0 +1,2 @@
+-- Change version of Centreon
+UPDATE `informations` SET `value` = '2.8.21' WHERE CONVERT( `informations`.`key` USING utf8 ) = 'version' AND CONVERT ( `informations`.`value` USING utf8 ) = '2.8.20' LIMIT 1;
-- 
GitLab