]> granicus.if.org Git - icinga2/commitdiff
Update database schemas.
authorGunnar Beutner <gunnar.beutner@netways.de>
Wed, 20 Nov 2013 08:10:23 +0000 (09:10 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Wed, 20 Nov 2013 08:10:50 +0000 (09:10 +0100)
Refs #5080

components/db_ido_mysql/idomysqlconnection.cpp
components/db_ido_mysql/schema/mysql.sql
components/db_ido_pgsql/idopgsqlconnection.cpp
components/db_ido_pgsql/schema/pgsql.sql

index 14d74db9b01ade4455bde8adb1a78fa069349d33..f1fe929d8db6b21bd497a01ca5722ca5af2f5940 100644 (file)
@@ -35,7 +35,7 @@ using namespace icinga;
 
 REGISTER_TYPE(IdoMysqlConnection);
 
-#define SCHEMA_VERSION "1.10.0"
+#define SCHEMA_VERSION "1.11.0"
 
 void IdoMysqlConnection::Start(void)
 {
index dc57b8e73dbb9bde3fa95e5a7ac4a45e7d993500..3fbe5fd9dc6cf830a359d6916b2819ca1a37ac49 100644 (file)
@@ -917,6 +917,7 @@ CREATE TABLE IF NOT EXISTS icinga_programstatus (
   modified_service_attributes  int default 0,
   global_host_event_handler TEXT character set latin1  default '',
   global_service_event_handler TEXT character set latin1  default '',
+  config_dump_in_progress smallint default 0,
   PRIMARY KEY  (programstatus_id),
   UNIQUE KEY instance_id (instance_id)
 ) ENGINE=InnoDB  COMMENT='Current program status information';
@@ -1526,6 +1527,6 @@ CREATE INDEX sla_idx_obj ON icinga_objects (objecttype_id, is_active, name1);
 -- -----------------------------------------
 -- set dbversion
 -- -----------------------------------------
-INSERT INTO icinga_dbversion (name, version, create_time, modify_time) VALUES ('idoutils', '1.10.0', NOW(), NOW()) ON DUPLICATE KEY UPDATE version='1.10.0', modify_time=NOW();
+INSERT INTO icinga_dbversion (name, version, create_time, modify_time) VALUES ('idoutils', '1.11.0', NOW(), NOW()) ON DUPLICATE KEY UPDATE version='1.11.0', modify_time=NOW();
 
 
index 32d363dd527bb5ae352fe167627e99b57a9177b4..609275b1fd21a542c3dc6a943edb34317b5ba069 100644 (file)
@@ -35,7 +35,7 @@ using namespace icinga;
 
 REGISTER_TYPE(IdoPgsqlConnection);
 
-#define SCHEMA_VERSION "1.10.0"
+#define SCHEMA_VERSION "1.11.0"
 
 void IdoPgsqlConnection::Start(void)
 {
index 8d02a95e1ddc0182f6fc512d7b5df50cfc53655f..cf44549f4ba6c9c8a945a83483fb497ab56110aa 100644 (file)
@@ -4,9 +4,6 @@
 --
 -- Copyright (c) 2009-2013 Icinga Development Team (http://www.icinga.org)
 --
--- initial version: 2009-05-13 Markus Manzke
--- current version: 2012-04-19 Michael Friedrich <michael.friedrich@univie.ac.at>
---
 -- --------------------------------------------------------
 
 --
@@ -947,6 +944,7 @@ CREATE TABLE  icinga_programstatus (
   modified_service_attributes INTEGER  default 0,
   global_host_event_handler TEXT  default '',
   global_service_event_handler TEXT  default '',
+  config_dump_in_progress INTEGER default 0,
   CONSTRAINT PK_programstatus_id PRIMARY KEY (programstatus_id) ,
   CONSTRAINT UQ_programstatus UNIQUE (instance_id)
 ) ;
@@ -1557,5 +1555,5 @@ CREATE INDEX sla_idx_obj ON icinga_objects (objecttype_id, is_active, name1);
 -- set dbversion
 -- -----------------------------------------
 
-SELECT updatedbversion('1.10.0');
+SELECT updatedbversion('1.11.0');