psql: update schema for global zones

This commit is contained in:
Thomas Gelf 2015-06-24 13:50:58 +02:00
parent b26172e0e9
commit 2ea2e51e00
2 changed files with 3 additions and 0 deletions

View File

@ -0,0 +1,2 @@
ALTER TABLE icinga_zone ADD is_global enum_boolean NOT NULL DEFAULT 'n';

View File

@ -165,6 +165,7 @@ CREATE TABLE icinga_zone (
parent_zone_id integer DEFAULT NULL,
object_name character varying(255) NOT NULL UNIQUE,
object_type enum_object_type NOT NULL,
is_global enum_boolean NOT NULL DEFAULT 'n',
PRIMARY KEY (id),
CONSTRAINT icinga_zone_parent_zone
FOREIGN KEY (parent_zone_id)