mysql-schema: create settings tablef for datafield
This commit is contained in:
parent
05a63e45d4
commit
4aa1307c9f
|
@ -0,0 +1,11 @@
|
||||||
|
CREATE TABLE director_datafield_setting (
|
||||||
|
datafield_id INT(10) UNSIGNED NOT NULL,
|
||||||
|
setting_name VARCHAR(64) NOT NULL,
|
||||||
|
setting_value TEXT NOT NULL,
|
||||||
|
PRIMARY KEY (datafield_id, setting_name),
|
||||||
|
CONSTRAINT datafield_id_settings
|
||||||
|
FOREIGN KEY datafield (datafield_id)
|
||||||
|
REFERENCES director_datafield (id)
|
||||||
|
ON DELETE CASCADE
|
||||||
|
ON UPDATE CASCADE
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
@ -125,6 +125,18 @@ CREATE TABLE director_datafield (
|
||||||
KEY search_idx (varname)
|
KEY search_idx (varname)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
CREATE TABLE director_datafield_setting (
|
||||||
|
datafield_id INT(10) UNSIGNED NOT NULL,
|
||||||
|
setting_name VARCHAR(64) NOT NULL,
|
||||||
|
setting_value TEXT NOT NULL,
|
||||||
|
PRIMARY KEY (datafield_id, setting_name),
|
||||||
|
CONSTRAINT datafield_id_settings
|
||||||
|
FOREIGN KEY datafield (datafield_id)
|
||||||
|
REFERENCES director_datafield (id)
|
||||||
|
ON DELETE CASCADE
|
||||||
|
ON UPDATE CASCADE
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
CREATE TABLE icinga_zone (
|
CREATE TABLE icinga_zone (
|
||||||
id INT(10) UNSIGNED AUTO_INCREMENT NOT NULL,
|
id INT(10) UNSIGNED AUTO_INCREMENT NOT NULL,
|
||||||
parent_zone_id INT(10) UNSIGNED DEFAULT NULL,
|
parent_zone_id INT(10) UNSIGNED DEFAULT NULL,
|
||||||
|
|
Loading…
Reference in New Issue