Update database schemas.

Refs #5080
This commit is contained in:
Gunnar Beutner 2013-11-20 09:10:23 +01:00
parent ce1b1242e4
commit a4b2c2134d
4 changed files with 6 additions and 7 deletions

View 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)
{

View 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();

View 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)
{

View 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');