SQLSchema: Update MySQL Schema with DataListEntry

This commit is contained in:
Alexander Fuhr 2015-07-22 13:42:01 +02:00
parent 9af1b60dc9
commit 8f74020b92
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
DROP TABLE director_datalist_value;
CREATE TABLE director_datalist_entry (
list_id INT(10) UNSIGNED NOT NULL,
entry_name VARCHAR(255) DEFAULT NULL,
entry_value TEXT DEFAULT NULL,
format enum ('string', 'expression', 'json'),
PRIMARY KEY (list_id, entry_name),
CONSTRAINT director_datalist_value_datalist
FOREIGN KEY datalist (list_id)
REFERENCES director_datalist (id)
ON DELETE CASCADE
ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;