+++ /dev/null
-/* 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);
--- /dev/null
+/* 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;