]> granicus.if.org Git - icinga2/commitdiff
Add MySQL/pgSQL upgrade files which fix name2 in the icinga_objects table
authorGunnar Beutner <gunnar.beutner@netways.de>
Wed, 23 Jul 2014 08:25:26 +0000 (10:25 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Wed, 23 Jul 2014 08:25:26 +0000 (10:25 +0200)
fixes #6646

components/db_ido_mysql/schema/upgrade/.gitignore [deleted file]
components/db_ido_mysql/schema/upgrade/mysql-upgrade-2.0.2.sql [new file with mode: 0644]
components/db_ido_pgsql/schema/upgrade/.gitignore [deleted file]
components/db_ido_pgsql/schema/upgrade/pgsql-upgrade-2.0.2.sql [new file with mode: 0644]

diff --git a/components/db_ido_mysql/schema/upgrade/.gitignore b/components/db_ido_mysql/schema/upgrade/.gitignore
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/components/db_ido_mysql/schema/upgrade/mysql-upgrade-2.0.2.sql b/components/db_ido_mysql/schema/upgrade/mysql-upgrade-2.0.2.sql
new file mode 100644 (file)
index 0000000..8bd871b
--- /dev/null
@@ -0,0 +1,10 @@
+-- -----------------------------------------
+-- upgrade path for Icinga 2.0.2
+--
+-- -----------------------------------------
+-- Copyright (c) 2014 Icinga Development Team (http://www.icinga.org)
+--
+-- Please check http://docs.icinga.org for upgrading information!
+-- -----------------------------------------
+
+UPDATE icinga_objects SET name2 = NULL WHERE name2 = '';
diff --git a/components/db_ido_pgsql/schema/upgrade/.gitignore b/components/db_ido_pgsql/schema/upgrade/.gitignore
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/components/db_ido_pgsql/schema/upgrade/pgsql-upgrade-2.0.2.sql b/components/db_ido_pgsql/schema/upgrade/pgsql-upgrade-2.0.2.sql
new file mode 100644 (file)
index 0000000..8bd871b
--- /dev/null
@@ -0,0 +1,10 @@
+-- -----------------------------------------
+-- upgrade path for Icinga 2.0.2
+--
+-- -----------------------------------------
+-- Copyright (c) 2014 Icinga Development Team (http://www.icinga.org)
+--
+-- Please check http://docs.icinga.org for upgrading information!
+-- -----------------------------------------
+
+UPDATE icinga_objects SET name2 = NULL WHERE name2 = '';