DB IDO: Fix datatype for 'check_source' in statehistory table

fixes #9455
This commit is contained in:
Michael Friedrich 2015-06-22 17:02:58 +02:00
parent c1923c9e5a
commit 3648703ad8
2 changed files with 8 additions and 1 deletions

View File

@ -1315,7 +1315,7 @@ CREATE TABLE icinga_statehistory (
last_hard_state INTEGER default '-1',
output TEXT default '',
long_output TEXT default '',
check_source varchar(255) default NULL,
check_source TEXT default '',
CONSTRAINT PK_statehistory_id PRIMARY KEY (statehistory_id)
) ;

View File

@ -116,6 +116,13 @@ ALTER TABLE icinga_systemcommands ALTER COLUMN end_time SET DEFAULT '1970-01-01
ALTER TABLE icinga_endpointstatus ALTER COLUMN status_update_time SET DEFAULT '1970-01-01 00:00:00+00';
-- -----------------------------------------
-- #9455 check_source data type
-- -----------------------------------------
ALTER TABLE icinga_statehistory ALTER COLUMN check_source TYPE TEXT;
ALTER TABLE icinga_statehistory ALTER COLUMN check_source SET default '';
-- -----------------------------------------
-- update dbversion
-- -----------------------------------------