Loosening check for drop table
authorAlexander Ebert <ebert@woltlab.com>
Tue, 3 Mar 2015 18:52:18 +0000 (19:52 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 3 Mar 2015 18:52:18 +0000 (19:52 +0100)
wcfsetup/install/files/lib/system/package/PackageInstallationSQLParser.class.php

index ba3726eb9eb99a8c8d1ed013d8f1b21e0536fdb8..268c7e53477bf6184d2a2fa755bfc9ba8740e823 100644 (file)
@@ -409,14 +409,8 @@ class PackageInstallationSQLParser extends SQLParser {
        protected function executeDropTableStatement($tableName) {
                if ($this->test) {
                        if (in_array($tableName, $this->existingTables)) {
-                               if (isset($this->knownTables[$tableName])) {
-                                       if ($this->knownTables[$tableName] != $this->package->packageID) {
-                                               throw new SystemException("Cannot drop table '".$tableName."'. A package can only drop own tables.");
-                                       }
-                               }
-                               else {
-                                       if (!isset($this->conflicts['DROP TABLE'])) $this->conflicts['DROP TABLE'] = array();
-                                       $this->conflicts['DROP TABLE'][] = $tableName;
+                               if (isset($this->knownTables[$tableName]) && $this->knownTables[$tableName] != $this->package->packageID) {
+                                       throw new SystemException("Cannot drop table '".$tableName."'. A package can only drop own tables.");
                                }
                        }
                }