From: Alexander Ebert Date: Sun, 29 Sep 2013 00:05:39 +0000 (+0200) Subject: Added missing foreign key X-Git-Tag: 2.0.0_Beta_10~13^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c1c9f06c50f4eeed3cdc418ac718769adc46e85b;p=GitHub%2FWoltLab%2FWCF.git Added missing foreign key --- diff --git a/com.woltlab.wcf/update_b10.sql b/com.woltlab.wcf/update_b10.sql index 246d406efb..5a84f0863a 100644 --- 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;