schema/mysql/upgrade_104: drop invalid data...

...before upgrading

fixes #730
This commit is contained in:
Thomas Gelf 2017-01-19 09:02:01 +01:00
parent d4b28101a1
commit 402f0ed4b4
1 changed files with 3 additions and 0 deletions

View File

@ -1,3 +1,6 @@
DELETE FROM icinga_timeperiod_range
WHERE range_key IS NULL OR range_value IS NULL;
ALTER TABLE icinga_timeperiod_range
ADD COLUMN range_key VARCHAR(255) NOT NULL COMMENT 'monday, ...',
ADD COLUMN range_value VARCHAR(255) NOT NULL COMMENT '00:00-24:00, ...';