summaryrefslogtreecommitdiffstats
path: root/schema/mysql-migrations/upgrade_65.sql
blob: 7c23c911a7bb623634d456797057b0cf60b23d2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
ALTER TABLE icinga_zone
  ADD COLUMN disabled ENUM('y', 'n') NOT NULL DEFAULT 'n' AFTER object_type;

ALTER TABLE icinga_timeperiod
  ADD COLUMN disabled ENUM('y', 'n') NOT NULL DEFAULT 'n' AFTER object_type;

ALTER TABLE icinga_command
  ADD COLUMN disabled ENUM('y', 'n') NOT NULL DEFAULT 'n' AFTER object_type;

ALTER TABLE icinga_apiuser
  ADD COLUMN disabled ENUM('y', 'n') NOT NULL DEFAULT 'n' AFTER object_type;

ALTER TABLE icinga_endpoint
  ADD COLUMN disabled ENUM('y', 'n') NOT NULL DEFAULT 'n' AFTER object_type;

ALTER TABLE icinga_host
  ADD COLUMN disabled ENUM('y', 'n') NOT NULL DEFAULT 'n' AFTER object_type;

ALTER TABLE icinga_service
  ADD COLUMN disabled ENUM('y', 'n') NOT NULL DEFAULT 'n' AFTER object_type;

ALTER TABLE icinga_hostgroup
  ADD COLUMN disabled ENUM('y', 'n') NOT NULL DEFAULT 'n' AFTER object_type;

ALTER TABLE icinga_servicegroup
  ADD COLUMN disabled ENUM('y', 'n') NOT NULL DEFAULT 'n' AFTER object_type;

ALTER TABLE icinga_user
  ADD COLUMN disabled ENUM('y', 'n') NOT NULL DEFAULT 'n' AFTER object_type;

ALTER TABLE icinga_usergroup    
  ADD COLUMN disabled ENUM('y', 'n') NOT NULL DEFAULT 'n' AFTER object_type;

INSERT INTO director_schema_migration
  SET migration_time = NOW(),
      schema_version = 65;