DB IDO: Drop invalid schema changes from 1.x IDOUtils in #6060

This commit is contained in:
Michael Friedrich 2014-10-26 19:57:16 +01:00
parent 56222ca90b
commit dd0a2ab590
2 changed files with 14 additions and 0 deletions

View File

@ -12,6 +12,13 @@ ALTER TABLE `icinga_programstatus` ADD COLUMN `program_version` varchar(64) char
ALTER TABLE icinga_contacts MODIFY alias TEXT character set latin1 default ''; ALTER TABLE icinga_contacts MODIFY alias TEXT character set latin1 default '';
ALTER TABLE icinga_hosts MODIFY alias TEXT character set latin1 default ''; ALTER TABLE icinga_hosts MODIFY alias TEXT character set latin1 default '';
ALTER TABLE icinga_hostgroups DROP COLUMN action_url;
ALTER TABLE icinga_hostgroups DROP COLUMN notes_url;
ALTER TABLE icinga_hostgroups DROP COLUMN notes;
ALTER TABLE icinga_servicegroups DROP COLUMN action_url;
ALTER TABLE icinga_servicegroups DROP COLUMN notes_url;
ALTER TABLE icinga_servicegroups DROP COLUMN notes;
-- ----------------------------------------- -- -----------------------------------------
-- update dbversion -- update dbversion
-- ----------------------------------------- -- -----------------------------------------

View File

@ -9,6 +9,13 @@
ALTER TABLE icinga_programstatus ADD COLUMN program_version TEXT default NULL; ALTER TABLE icinga_programstatus ADD COLUMN program_version TEXT default NULL;
ALTER TABLE icinga_hostgroups DROP COLUMN action_url;
ALTER TABLE icinga_hostgroups DROP COLUMN notes_url;
ALTER TABLE icinga_hostgroups DROP COLUMN notes;
ALTER TABLE icinga_servicegroups DROP COLUMN action_url;
ALTER TABLE icinga_servicegroups DROP COLUMN notes_url;
ALTER TABLE icinga_servicegroups DROP COLUMN notes;
-- ----------------------------------------- -- -----------------------------------------
-- update dbversion -- update dbversion
-- ----------------------------------------- -- -----------------------------------------