## What's New
+### What's New in Version 2.0.2
+
+#### Changes
+
+* DB IDO schema upgrade required (new schema version: 1.11.6)
+
### What's New in Version 2.0.1
* Bug #6316: application fails to start on wrong log file permissions but does not tell about it
using namespace icinga;
-#define SCHEMA_VERSION "1.11.3"
+#define SCHEMA_VERSION "1.11.6"
REGISTER_TYPE(IdoMysqlConnection);
REGISTER_STATSFUNCTION(IdoMysqlConnectionStats, &IdoMysqlConnection::StatsFunc);
object_id bigint unsigned default 0,
config_type smallint default 0,
has_been_modified smallint default 0,
- varname varchar(255) character set latin1 default '',
+ varname varchar(255) character set latin1 collate latin1_general_cs default NULL,
varvalue TEXT character set latin1 default '',
PRIMARY KEY (customvariable_id),
UNIQUE KEY object_id_2 (object_id,config_type,varname),
object_id bigint unsigned default 0,
status_update_time timestamp default '0000-00-00 00:00:00',
has_been_modified smallint default 0,
- varname varchar(255) character set latin1 default '',
+ varname varchar(255) character set latin1 collate latin1_general_cs default NULL,
varvalue TEXT character set latin1 default '',
PRIMARY KEY (customvariablestatus_id),
UNIQUE KEY object_id_2 (object_id,varname),
-- -----------------------------------------
-- set dbversion
-- -----------------------------------------
-INSERT INTO icinga_dbversion (name, version, create_time, modify_time) VALUES ('idoutils', '1.11.3', NOW(), NOW()) ON DUPLICATE KEY UPDATE version='1.11.3', modify_time=NOW();
+INSERT INTO icinga_dbversion (name, version, create_time, modify_time) VALUES ('idoutils', '1.11.6', NOW(), NOW()) ON DUPLICATE KEY UPDATE version='1.11.6', modify_time=NOW();
-- -----------------------------------------
UPDATE icinga_objects SET name2 = NULL WHERE name2 = '';
+
+ALTER TABLE `icinga_customvariables` MODIFY COLUMN `varname` varchar(255) character set latin1 collate latin1_general_cs default NULL;
+ALTER TABLE `icinga_customvariablestatus` MODIFY COLUMN `varname` varchar(255) character set latin1 collate latin1_general_cs default NULL;
+
+-- -----------------------------------------
+-- update dbversion
+-- -----------------------------------------
+
+INSERT INTO icinga_dbversion (name, version, create_time, modify_time) VALUES ('idoutils', '1.11.6', NOW(), NOW()) ON DUPLICATE KEY UPDATE version='1.11.6', modify_time=NOW();
+
using namespace icinga;
-#define SCHEMA_VERSION "1.11.3"
+#define SCHEMA_VERSION "1.11.6"
REGISTER_TYPE(IdoPgsqlConnection);
-- set dbversion
-- -----------------------------------------
-SELECT updatedbversion('1.11.3');
+SELECT updatedbversion('1.11.6');
-- -----------------------------------------
UPDATE icinga_objects SET name2 = NULL WHERE name2 = '';
+
+-- -----------------------------------------
+-- update dbversion
+-- -----------------------------------------
+
+SELECT updatedbversion('1.11.6');
+
## <a id="whats-new"></a> What's new
+### What's New in Version 2.0.2
+
+#### Changes
+
+* DB IDO schema upgrade required (new schema version: 1.11.6)
+
### What's New in Version 2.0.1
* Bug #6316: application fails to start on wrong log file permissions but does not tell about it
There is a separate module for each database back-end. At present support for
both MySQL and PostgreSQL is implemented.
-Icinga 2 uses the Icinga 1.x IDOUtils database schema starting with version
-`1.11.3`. Icinga 2 requires additional features not yet released with older
-Icinga 1.x versions.
+Icinga 2 uses the Icinga 1.x IDOUtils database schema. Icinga 2 requires additional
+features not yet released with older Icinga 1.x versions.
+
+* Current required schema version: `1.11.6`.
+
> **Tip**
>