From: Alexander Ebert Date: Sun, 18 Dec 2016 20:14:26 +0000 (+0100) Subject: Added update sql X-Git-Tag: 3.0.0_RC_2~22 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=70645db3693227f8391f6218eab0f24b3e067de8;p=GitHub%2FWoltLab%2FWCF.git Added update sql --- diff --git a/com.woltlab.wcf/update_3.0.0_rc_1.sql b/com.woltlab.wcf/update_3.0.0_rc_1.sql deleted file mode 100644 index 10ba303017..0000000000 --- a/com.woltlab.wcf/update_3.0.0_rc_1.sql +++ /dev/null @@ -1,12 +0,0 @@ -/* c906ea240f952dcde62c84d55df42f1e878ae4e9 */ -ALTER TABLE wcf1_acp_session ADD COLUMN sessionVariables MEDIUMTEXT; - -DELETE FROM wcf1_session; -ALTER TABLE wcf1_session ADD COLUMN sessionVariables MEDIUMTEXT; -ALTER TABLE wcf1_session_virtual DROP COLUMN sessionVariables; - -/* 6123473ddc43b116ed8d6dec42501d8af5fffdfe */ -ALTER TABLE wcf1_moderation_queue ADD KEY objectTypeAndID (objectTypeID, objectID); - -/* 5935e8588238bef0987e62765bd364f59362d21e */ -ALTER TABLE wcf1_modification_log ADD KEY objectTypeAndID (objectTypeID, objectID); diff --git a/com.woltlab.wcf/update_3.0.0_rc_2.sql b/com.woltlab.wcf/update_3.0.0_rc_2.sql new file mode 100644 index 0000000000..f3c5383483 --- /dev/null +++ b/com.woltlab.wcf/update_3.0.0_rc_2.sql @@ -0,0 +1,5 @@ +/* 495a4c11a530a91c4d3320124752d4157ac48ec7 */ +ALTER TABLE wcf1_application ADD COLUMN landingPageID INT(10) NULL; +ALTER TABLE wcf1_application ADD FOREIGN KEY (landingPageID) REFERENCES wcf1_page (pageID) ON DELETE SET NULL; + +UPDATE wcf1_application SET landingPageID = (SELECT pageID FROM wcf1_page WHERE isLandingPage = 1 LIMIT 1) WHERE packageID = 1;