From af1b82387e475bd6f42dd28aec4e58907772c862 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sat, 18 Jul 2020 15:31:37 +0200 Subject: [PATCH] Removed the rebuild script for 5.3 The script will have already been executed in 3.1/5.2 before 5.3 is released. --- ..._com.woltlab.wcf_embeddedObjectOrphans.php | 28 ------------------- 1 file changed, 28 deletions(-) delete mode 100644 wcfsetup/install/files/acp/update_com.woltlab.wcf_embeddedObjectOrphans.php diff --git a/wcfsetup/install/files/acp/update_com.woltlab.wcf_embeddedObjectOrphans.php b/wcfsetup/install/files/acp/update_com.woltlab.wcf_embeddedObjectOrphans.php deleted file mode 100644 index cb91e308c4..0000000000 --- a/wcfsetup/install/files/acp/update_com.woltlab.wcf_embeddedObjectOrphans.php +++ /dev/null @@ -1,28 +0,0 @@ -getObjectTypeIDByName('com.woltlab.wcf.message', 'com.woltlab.wcf.article.content'); - -$sql = "DELETE FROM wcf".WCF_N."_message_embedded_object - WHERE messageObjectTypeID = ? - AND messageID NOT IN ( - SELECT articleContentID - FROM wcf".WCF_N."_article_content - )"; -$statement = WCF::getDB()->prepareStatement($sql); -$statement->execute([$articleContentObjectTypeID]); - -// 2) Pages -$pageContentObjectTypeID = ObjectTypeCache::getInstance()->getObjectTypeIDByName('com.woltlab.wcf.message', 'com.woltlab.wcf.page.content'); - -$sql = "DELETE FROM wcf".WCF_N."_message_embedded_object - WHERE messageObjectTypeID = ? - AND messageID NOT IN ( - SELECT pageContentID - FROM wcf".WCF_N."_page_content - )"; -$statement = WCF::getDB()->prepareStatement($sql); -$statement->execute([$pageContentObjectTypeID]); - -- 2.20.1