projects
/
GitHub
/
WoltLab
/
WCF.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc0cc4f
)
Added missing foreign key
author
Alexander Ebert
<ebert@woltlab.com>
Sun, 29 Sep 2013 00:05:39 +0000
(
02:05
+0200)
committer
Alexander Ebert
<ebert@woltlab.com>
Sun, 29 Sep 2013 00:05:39 +0000
(
02:05
+0200)
com.woltlab.wcf/update_b10.sql
patch
|
blob
|
blame
|
history
diff --git
a/com.woltlab.wcf/update_b10.sql
b/com.woltlab.wcf/update_b10.sql
index 246d406efbc99c4f0fc65c5a297d61fdfb2e374c..5a84f0863a92299466f39cb53a71f5f0e8483b2f 100644
(file)
--- a/
com.woltlab.wcf/update_b10.sql
+++ b/
com.woltlab.wcf/update_b10.sql
@@
-10,4
+10,6
@@
CREATE TABLE wcf1_cli_history (
userID INT(10) NOT NULL,
command VARCHAR(255) NOT NULL,
KEY (userID)
-);
\ No newline at end of file
+);
+
+ALTER TABLE wcf1_cli_history ADD FOREIGN KEY (userID) REFERENCES wcf1_user (userID) ON DELETE CASCADE;