mirror of https://github.com/Icinga/icinga2.git
DB IDO: Fix datatype for 'check_source' in statehistory table
fixes #9455
This commit is contained in:
parent
c1923c9e5a
commit
3648703ad8
|
@ -1315,7 +1315,7 @@ CREATE TABLE icinga_statehistory (
|
||||||
last_hard_state INTEGER default '-1',
|
last_hard_state INTEGER default '-1',
|
||||||
output TEXT default '',
|
output TEXT default '',
|
||||||
long_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)
|
CONSTRAINT PK_statehistory_id PRIMARY KEY (statehistory_id)
|
||||||
) ;
|
) ;
|
||||||
|
|
||||||
|
|
|
@ -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';
|
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
|
-- update dbversion
|
||||||
-- -----------------------------------------
|
-- -----------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue