using namespace icinga;
-#define SCHEMA_VERSION "1.11.6"
+#define SCHEMA_VERSION "1.11.7"
REGISTER_TYPE(IdoMysqlConnection);
REGISTER_STATSFUNCTION(IdoMysqlConnectionStats, &IdoMysqlConnection::StatsFunc);
status_update_time timestamp default '0000-00-00 00:00:00',
program_start_time timestamp default '0000-00-00 00:00:00',
program_end_time timestamp default '0000-00-00 00:00:00',
+ endpoint_name varchar(255) character set latin1 collate latin1_general_cs default NULL,
is_currently_running smallint default 0,
process_id bigint unsigned default 0,
daemon_mode smallint default 0,
--- /dev/null
+-- -----------------------------------------
+-- upgrade path for Icinga 2.1.0
+--
+-- -----------------------------------------
+-- Copyright (c) 2014 Icinga Development Team (http://www.icinga.org)
+--
+-- Please check http://docs.icinga.org for upgrading information!
+-- -----------------------------------------
+
+ALTER TABLE `icinga_programstatus` ADD COLUMN `endpoint_name` 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.7', NOW(), NOW()) ON DUPLICATE KEY UPDATE version='1.11.7', modify_time=NOW();
+
using namespace icinga;
-#define SCHEMA_VERSION "1.11.6"
+#define SCHEMA_VERSION "1.11.7"
REGISTER_TYPE(IdoPgsqlConnection);
program_start_time timestamp with time zone default '1970-01-01 00:00:00',
program_end_time timestamp with time zone default '1970-01-01 00:00:00',
is_currently_running INTEGER default 0,
+ endpoint_name TEXT default '',
process_id bigint default 0,
daemon_mode INTEGER default 0,
last_command_check timestamp with time zone default '1970-01-01 00:00:00',
--- /dev/null
+-- -----------------------------------------
+-- upgrade path for Icinga 2.1.0
+--
+-- -----------------------------------------
+-- Copyright (c) 2014 Icinga Development Team (http://www.icinga.org)
+--
+-- Please check http://docs.icinga.org for upgrading information!
+-- -----------------------------------------
+
+ALTER TABLE icinga_programstatus ADD COLUMN endpoint_name TEXT default NULL;
+
+-- -----------------------------------------
+-- update dbversion
+-- -----------------------------------------
+
+SELECT updatedbversion('1.11.7');
+