Work-around the issue in 4.0.3 (pl 1) -> 4.0.4
authorAlexander Ebert <ebert@woltlab.com>
Thu, 20 Mar 2014 00:36:59 +0000 (01:36 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 20 Mar 2014 00:36:59 +0000 (01:36 +0100)
com.woltlab.wcf/package.xml
com.woltlab.wcf/update_2.0.3.sql [deleted file]
wcfsetup/install/files/acp/update_com.woltlab.wcf_2.0.4.php [deleted file]

index 9d33eeb20877f2da65b58259bb88c0e792de07c7..ccf7fea5cb8c3de73214f75f0371b29f8493d4b6 100644 (file)
@@ -5,8 +5,8 @@
                <packagedescription><![CDATA[Free web-framework, designed and developed for complex community applications.]]></packagedescription>
                <packagedescription language="de"><![CDATA[Freies Web-Framework, das für komplexe Community-Anwendungen entworfen und entwickelt wurde.]]></packagedescription>
                <isapplication>1</isapplication>
-               <version>2.0.4</version> <!-- codename: maelstrom -->
-               <date>2014-03-19</date>
+               <version>2.0.4 pl 1</version> <!-- codename: maelstrom -->
+               <date>2014-03-20</date>
        </packageinformation>
        
        <authorinformation>
                <instruction type="script">acp/post_install.php</instruction>
        </instructions>
        
-       <instructions type="update" fromversion="2.0.3">
-               <instruction type="acpTemplate">acptemplates_update.tar</instruction>
-               <instruction type="file">files_update.tar</instruction>
-               <instruction type="template">templates_update.tar</instruction>
-               <instruction type="script">acp/update_com.woltlab.wcf_2.0.4.php</instruction>
-               
-               <instruction type="language">languages/*</instruction>
-               <instruction type="smiley">smiley.xml</instruction>
-               <instruction type="userOption">userOption.xml</instruction>
-       </instructions>
-       
-       <instructions type="update" fromversion="2.0.3 pl 1">
-               <instruction type="acpTemplate">acptemplates_update.tar</instruction>
-               <instruction type="file">files_update.tar</instruction>
-               <instruction type="template">templates_update.tar</instruction>
-               <instruction type="script">acp/update_com.woltlab.wcf_2.0.4.php</instruction>
-               
+       <instructions type="update" fromversion="2.0.4">
                <instruction type="language">languages/*</instruction>
                <instruction type="smiley">smiley.xml</instruction>
                <instruction type="userOption">userOption.xml</instruction>
diff --git a/com.woltlab.wcf/update_2.0.3.sql b/com.woltlab.wcf/update_2.0.3.sql
deleted file mode 100644 (file)
index 1c4bebf..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-/* 644b0ee */
-ALTER TABLE wcf1_user_collapsible_content CHANGE objectID objectID VARCHAR(255) NOT NULL;
diff --git a/wcfsetup/install/files/acp/update_com.woltlab.wcf_2.0.4.php b/wcfsetup/install/files/acp/update_com.woltlab.wcf_2.0.4.php
deleted file mode 100644 (file)
index d408c0c..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-use wcf\data\like\object\LikeObjectList;
-use wcf\data\object\type\ObjectTypeCache;
-use wcf\system\like\LikeHandler;
-
-/**
- * @author     Matthias Schmidt
- * @copyright  2001-2014 WoltLab GmbH
- * @license    GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
- * @package    com.woltlab.wcf
- * @category   Community Framework
- */
-// delete likes for deleted comments responses
-$likeObjectList = new LikeObjectList();
-$likeObjectList->sqlJoins = "LEFT JOIN wcf".WCF_N."_comment_response comment_response ON (comment_response.responseID = like_object.objectID)";
-$likeObjectList->getConditionBuilder()->add('like_object.objectTypeID = ?', array(ObjectTypeCache::getInstance()->getObjectTypeIDByName('com.woltlab.wcf.like.likeableObject', 'com.woltlab.wcf.comment.response')));
-$likeObjectList->getConditionBuilder()->add('comment_response.responseID IS NULL');
-$likeObjectList->readObjects();
-
-$deletedResponseIDs = array();
-foreach ($likeObjectList as $likeObject) {
-       $deletedResponseIDs[] = $likeObject->objectID;
-}
-
-if (!empty($deletedResponseIDs)) {
-       LikeHandler::getInstance()->removeLikes('com.woltlab.wcf.comment.response', $deletedResponseIDs);
-}