Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

Commit

Permalink
Bugfix: Changed default value for start/end/acknowledgement timestamp…
Browse files Browse the repository at this point in the history
… to NULL.
  • Loading branch information
gunnarbeutner committed Nov 18, 2011
1 parent 74f06e7 commit 3a56389
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions module/idoutils/db/mysql/mysql.sql
Expand Up @@ -1376,9 +1376,9 @@ CREATE TABLE IF NOT EXISTS icinga_timeperiod_timeranges (
CREATE TABLE IF NOT EXISTS icinga_slahistory (
slahistory_id serial,
instance_id bigint unsigned default 0,
start_time timestamp default '0000-00-00 00:00:00',
end_time timestamp default '0000-00-00 00:00:00',
acknowledgement_time timestamp default '0000-00-00 00:00:00',
start_time timestamp null default NULL,
end_time timestamp null default NULL,
acknowledgement_time timestamp null default NULL,
object_id bigint unsigned default 0,
state smallint default 0,
state_type smallint default '0',
Expand Down
6 changes: 3 additions & 3 deletions module/idoutils/db/mysql/upgrade/mysql-upgrade-1.6.0.sql
Expand Up @@ -20,9 +20,9 @@ ALTER TABLE icinga_acknowledgements ADD end_time timestamp default '0000-00-00 0
CREATE TABLE IF NOT EXISTS icinga_slahistory (
slahistory_id serial,
instance_id bigint unsigned default 0,
start_time timestamp default '0000-00-00 00:00:00',
end_time timestamp default '0000-00-00 00:00:00',
acknowledgement_time timestamp default '0000-00-00 00:00:00',
start_time timestamp null default NULL,
end_time timestamp null default NULL,
acknowledgement_time timestamp null default NULL,
object_id bigint unsigned default 0,
state smallint default 0,
state_type smallint default '0',
Expand Down

0 comments on commit 3a56389

Please sign in to comment.