From: Matthias Schmidt Date: Sat, 13 Oct 2018 13:26:50 +0000 (+0200) Subject: Remove obsolete update scripts X-Git-Tag: 5.2.0_Alpha_1~364^2~6 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=efbb8a26130b68f60101129a59f5102cf68d6f33;p=GitHub%2FWoltLab%2FWCF.git Remove obsolete update scripts --- diff --git a/com.woltlab.wcf/update_3.1.0.rc.4.sql b/com.woltlab.wcf/update_3.1.0.rc.4.sql deleted file mode 100644 index 21a0e4b28d..0000000000 --- a/com.woltlab.wcf/update_3.1.0.rc.4.sql +++ /dev/null @@ -1,6 +0,0 @@ --- Force-enable the visibility of *all* pages by setting `allowSpidersToIndex` to `2`. --- --- This value isn't valid by definition, but because it is considered to be a true-ish --- value, we can use this to imply an "implicit yes" without breaking any checks. Check --- the PagePackageInstallationPlugin to see what this magic value is good for. -UPDATE wcf1_page SET allowSpidersToIndex = 2 WHERE pageType = 'system'; diff --git a/com.woltlab.wcf/update_3.1.0.sql b/com.woltlab.wcf/update_3.1.0.sql deleted file mode 100644 index 21a0e4b28d..0000000000 --- a/com.woltlab.wcf/update_3.1.0.sql +++ /dev/null @@ -1,6 +0,0 @@ --- Force-enable the visibility of *all* pages by setting `allowSpidersToIndex` to `2`. --- --- This value isn't valid by definition, but because it is considered to be a true-ish --- value, we can use this to imply an "implicit yes" without breaking any checks. Check --- the PagePackageInstallationPlugin to see what this magic value is good for. -UPDATE wcf1_page SET allowSpidersToIndex = 2 WHERE pageType = 'system'; diff --git a/com.woltlab.wcf/update_3.1.5_pl_1.sql b/com.woltlab.wcf/update_3.1.5_pl_1.sql deleted file mode 100644 index 6435dc94d0..0000000000 --- a/com.woltlab.wcf/update_3.1.5_pl_1.sql +++ /dev/null @@ -1,2 +0,0 @@ --- Force-reset all cronjobs due to a bug in 3.1.5 that caused cronjobs to be accidentally disabled. -UPDATE wcf1_cronjob SET isDisabled = 0, failCount = 0; diff --git a/com.woltlab.wcf/update_3.1_1.sql b/com.woltlab.wcf/update_3.1_1.sql deleted file mode 100644 index c1d7a7362a..0000000000 --- a/com.woltlab.wcf/update_3.1_1.sql +++ /dev/null @@ -1,4 +0,0 @@ -ALTER TABLE wcf1_comment DROP FOREIGN KEY objectTypeID; -ALTER TABLE wcf1_comment DROP KEY objectTypeID; -ALTER TABLE wcf1_comment ADD KEY (objectTypeID, objectID, isDisabled, time); -ALTER TABLE wcf1_comment ADD FOREIGN KEY (objectTypeID) REFERENCES wcf1_object_type (objectTypeID) ON DELETE CASCADE; diff --git a/com.woltlab.wcf/update_3.1_2.sql b/com.woltlab.wcf/update_3.1_2.sql deleted file mode 100644 index 0f9fa11daf..0000000000 --- a/com.woltlab.wcf/update_3.1_2.sql +++ /dev/null @@ -1,4 +0,0 @@ -ALTER TABLE wcf1_comment_response DROP FOREIGN KEY commentID; -ALTER TABLE wcf1_comment_response DROP KEY commentID; -ALTER TABLE wcf1_comment_response ADD KEY (commentID, isDisabled, time); -ALTER TABLE wcf1_comment_response ADD FOREIGN KEY (commentID) REFERENCES wcf1_comment (commentID) ON DELETE CASCADE; diff --git a/com.woltlab.wcf/update_3.1_3.sql b/com.woltlab.wcf/update_3.1_3.sql deleted file mode 100644 index 5341a79648..0000000000 --- a/com.woltlab.wcf/update_3.1_3.sql +++ /dev/null @@ -1,147 +0,0 @@ --- remove default media providers (they'll be re-added later during the upgrade) -DELETE FROM wcf1_bbcode_media_provider WHERE title IN ('YouTube', 'YouTube Playlist', 'Vimeo', 'Clipfish', 'Veoh', 'DailyMotion', 'github gist', 'Soundcloud', 'Soundcloud set'); -UPDATE wcf1_bbcode_media_provider SET name = CONCAT('com.woltlab.wcf.generic', providerID), packageID = 1; -ALTER TABLE wcf1_bbcode_media_provider ADD UNIQUE KEY name (name, packageID); - -DROP TABLE IF EXISTS wcf1_contact_option; -CREATE TABLE wcf1_contact_option ( - optionID INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY, - optionTitle VARCHAR(255) NOT NULL DEFAULT '', - optionDescription TEXT, - optionType VARCHAR(255) NOT NULL DEFAULT '', - defaultValue MEDIUMTEXT, - validationPattern TEXT, - selectOptions MEDIUMTEXT, - required TINYINT(1) NOT NULL DEFAULT 0, - showOrder INT(10) NOT NULL DEFAULT 0, - isDisabled TINYINT(1) NOT NULL DEFAULT 0, - originIsSystem TINYINT(1) NOT NULL DEFAULT 0 -); - -DROP TABLE IF EXISTS wcf1_contact_recipient; -CREATE TABLE wcf1_contact_recipient ( - recipientID INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY, - name VARCHAR(255) NOT NULL, - email VARCHAR(255) NOT NULL, - showOrder INT(10) NOT NULL DEFAULT 0, - isAdministrator TINYINT(1) NOT NULL DEFAULT 0, - isDisabled TINYINT(1) NOT NULL DEFAULT 0, - originIsSystem TINYINT(1) NOT NULL DEFAULT 0 -); - -DROP TABLE IF EXISTS wcf1_devtools_project; -CREATE TABLE wcf1_devtools_project ( - projectID INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY, - name VARCHAR(191) NOT NULL, - path TEXT, - - UNIQUE KEY name (name) -); - -ALTER TABLE wcf1_event_listener CHANGE eventClassName eventClassName VARCHAR(255) NOT NULL DEFAULT ''; - -DROP TABLE IF EXISTS wcf1_package_compatibility; -CREATE TABLE wcf1_package_compatibility ( - packageID INT(10) NOT NULL, - version SMALLINT(4) NOT NULL, - UNIQUE KEY compatibleVersion (packageID, version) -); - -DROP TABLE IF EXISTS wcf1_package_update_compatibility; -CREATE TABLE wcf1_package_update_compatibility ( - packageUpdateVersionID INT(10) NOT NULL, - version SMALLINT(4) NOT NULL, - UNIQUE KEY compatibleVersion (packageUpdateVersionID, version) -); - -ALTER TABLE wcf1_package_update_server CHANGE COLUMN apiVersion apiVersion ENUM('2.0', '2.1', '3.1') NOT NULL DEFAULT '2.0'; - -DROP TABLE IF EXISTS wcf1_page_box_order; -CREATE TABLE wcf1_page_box_order ( - pageID INT(10) NOT NULL, - boxID INT(10) NOT NULL, - showOrder INT(10) NOT NULL DEFAULT 0, - UNIQUE KEY pageToBox (pageID, boxID) -); - -DROP TABLE IF EXISTS wcf1_registry; -CREATE TABLE wcf1_registry ( - packageID INT(10) NOT NULL, - field VARCHAR(191) NOT NULL, - fieldValue MEDIUMTEXT, - - UNIQUE KEY uniqueField (packageID, field) -); - -DROP TABLE IF EXISTS wcf1_trophy; -CREATE TABLE wcf1_trophy( - trophyID INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY, - title VARCHAR(255), - description MEDIUMTEXT, - categoryID INT(10) NOT NULL, - type SMALLINT(1) DEFAULT 1, - iconFile MEDIUMTEXT, - iconName VARCHAR(255), - iconColor VARCHAR(255), - badgeColor VARCHAR(255), - isDisabled TINYINT(1) NOT NULL DEFAULT 0, - awardAutomatically TINYINT(1) NOT NULL DEFAULT 0, - KEY(categoryID) -); - -DROP TABLE IF EXISTS wcf1_user_special_trophy; -CREATE TABLE wcf1_user_special_trophy( - trophyID INT(10) NOT NULL, - userID INT(10) NOT NULL, - UNIQUE KEY (trophyID, userID) -); - -DROP TABLE IF EXISTS wcf1_user_trophy; -CREATE TABLE wcf1_user_trophy( - userTrophyID INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY, - trophyID INT(10) NOT NULL, - userID INT(10) NOT NULL, - time INT(10) NOT NULL DEFAULT 0, - description MEDIUMTEXT, - useCustomDescription TINYINT(1) NOT NULL DEFAULT 0, - KEY(trophyID, time) -); - -ALTER TABLE wcf1_article_content ADD FOREIGN KEY (teaserImageID) REFERENCES wcf1_media (mediaID) ON DELETE SET NULL; -ALTER TABLE wcf1_bbcode_media_provider ADD FOREIGN KEY (packageID) REFERENCES wcf1_package (packageID) ON DELETE CASCADE; -ALTER TABLE wcf1_media ADD FOREIGN KEY (categoryID) REFERENCES wcf1_category (categoryID) ON DELETE SET NULL; -ALTER TABLE wcf1_package_compatibility ADD FOREIGN KEY (packageID) REFERENCES wcf1_package (packageID) ON DELETE CASCADE; -ALTER TABLE wcf1_package_update_compatibility ADD FOREIGN KEY (packageUpdateVersionID) REFERENCES wcf1_package_update_version (packageUpdateVersionID) ON DELETE CASCADE; -ALTER TABLE wcf1_page_box_order ADD FOREIGN KEY (pageID) REFERENCES wcf1_page (pageID) ON DELETE CASCADE; -ALTER TABLE wcf1_page_box_order ADD FOREIGN KEY (boxID) REFERENCES wcf1_box (boxID) ON DELETE CASCADE; -ALTER TABLE wcf1_registry ADD FOREIGN KEY (packageID) REFERENCES wcf1_package (packageID) ON DELETE CASCADE; -ALTER TABLE wcf1_trophy ADD FOREIGN KEY (categoryID) REFERENCES wcf1_category (categoryID) ON DELETE CASCADE; -ALTER TABLE wcf1_user_trophy ADD FOREIGN KEY (trophyID) REFERENCES wcf1_trophy (trophyID) ON DELETE CASCADE; -ALTER TABLE wcf1_user_trophy ADD FOREIGN KEY (userID) REFERENCES wcf1_user (userID) ON DELETE CASCADE; -ALTER TABLE wcf1_user_special_trophy ADD FOREIGN KEY (userID) REFERENCES wcf1_user (userID) ON DELETE CASCADE; -ALTER TABLE wcf1_user_special_trophy ADD FOREIGN KEY (trophyID) REFERENCES wcf1_trophy (trophyID) ON DELETE CASCADE; - --- update servers are added through a script to avoid collisions - -INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfContentContainerBackground', 'rgba(255, 255, 255, 1)'); -INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfContentContainerBorder', 'rgba(236, 241, 247, 1)'); -INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfEditorButtonBackground', 'rgba(58, 109, 156, 1)'); -INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfEditorButtonBackgroundActive', 'rgba(36, 66, 95, 1)'); -INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfEditorButtonText', 'rgba(255, 255, 255, 1)'); -INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfEditorButtonTextActive', 'rgba(255, 255, 255, 1)'); -INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfEditorButtonTextDisabled', 'rgba(165, 165, 165, 1)'); - --- default options: subject and message -INSERT INTO wcf1_contact_option (optionID, optionTitle, optionDescription, optionType, required, showOrder, originIsSystem) VALUES (1, 'wcf.contact.option1', 'wcf.contact.optionDescription1', 'text', 1, 1, 1); -INSERT INTO wcf1_contact_option (optionID, optionTitle, optionDescription, optionType, required, showOrder, originIsSystem) VALUES (2, 'wcf.contact.option2', '', 'textarea', 1, 1, 1); - --- default recipient: site administrator -INSERT INTO wcf1_contact_recipient (recipientID, name, email, isAdministrator, originIsSystem) VALUES (1, 'wcf.contact.recipient.name1', '', 1, 1); - --- Force-enable the visibility of *all* pages by setting `allowSpidersToIndex` to `2`. --- --- This value isn't valid by definition, but because it is considered to be a true-ish --- value, we can use this to imply an "implicit yes" without breaking any checks. Check --- the PagePackageInstallationPlugin to see what this magic value is good for. -UPDATE wcf1_page SET allowSpidersToIndex = 1 WHERE pageType <> 'system'; -UPDATE wcf1_page SET allowSpidersToIndex = 2 WHERE pageType = 'system'; diff --git a/com.woltlab.wcf/update_3.1_4.sql b/com.woltlab.wcf/update_3.1_4.sql deleted file mode 100644 index 6b24d572ac..0000000000 --- a/com.woltlab.wcf/update_3.1_4.sql +++ /dev/null @@ -1 +0,0 @@ -ALTER TABLE wcf1_user ADD KEY trophyPoints (trophyPoints);