aboutsummaryrefslogtreecommitdiff
path: root/debug.xml
diff options
context:
space:
mode:
Diffstat (limited to 'debug.xml')
-rw-r--r--debug.xml6
1 files changed, 3 insertions, 3 deletions
diff --git a/debug.xml b/debug.xml
index 3c0ff81ac..d29c308c9 100644
--- a/debug.xml
+++ b/debug.xml
@@ -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,