diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-08-07 19:53:19 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-08-07 19:53:19 +1200 |
commit | 7860fa65e2d968e2f79335d8f81a4717c643d51c (patch) | |
tree | ba22a5e65d20e706ff60b461f6490e351444425d /debug.xml | |
parent | c3d2ad1caf639ae648421d66f6c627e97e81579b (diff) | |
download | trackermap-server-7860fa65e2d968e2f79335d8f81a4717c643d51c.tar.gz trackermap-server-7860fa65e2d968e2f79335d8f81a4717c643d51c.tar.bz2 trackermap-server-7860fa65e2d968e2f79335d8f81a4717c643d51c.zip |
Update SQL in config files
Diffstat (limited to 'debug.xml')
-rw-r--r-- | debug.xml | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -111,13 +111,13 @@ serverTime TIMESTAMP NOT NULL, deviceTime TIMESTAMP NOT NULL, other VARCHAR(4096) NOT NULL, - FOREIGN KEY (deviceId) REFERENCES device (id)); + FOREIGN KEY (deviceId) REFERENCES device (id) ON DELETE CASCADE); ALTER TABLE device ADD - FOREIGN KEY (positionId) REFERENCES position (id); + FOREIGN KEY (positionId) REFERENCES position (id) ON DELETE CASCADE; ALTER TABLE device ADD - FOREIGN KEY (dataId) REFERENCES data (id); + FOREIGN KEY (dataId) REFERENCES data (id) ON DELETE CASCADE; CREATE TABLE server ( id INT PRIMARY KEY AUTO_INCREMENT, |