blob: 0ddb9b675d174a2ef79b513730eae72cd4390c42 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
DROP TABLE icinga_command_field;
CREATE TABLE icinga_command_field (
command_id INT(10) UNSIGNED NOT NULL,
datafield_id INT(10) UNSIGNED NOT NULL,
is_required ENUM('y', 'n') NOT NULL,
PRIMARY KEY (command_id, datafield_id),
CONSTRAINT icinga_command_field_command
FOREIGN KEY command_id (command_id)
REFERENCES icinga_command (id)
ON DELETE CASCADE
ON UPDATE CASCADE,
CONSTRAINT icinga_command_field_datafield
FOREIGN KEY datafield(datafield_id)
REFERENCES director_datafield (id)
ON DELETE CASCADE
ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|