]> source.dussan.org Git - nextcloud-server.git/commitdiff
Dont touch non-oc tables when doing the InnoDB repair step
authorRobin Appelman <icewind@owncloud.com>
Mon, 4 Aug 2014 11:14:12 +0000 (13:14 +0200)
committerRobin Appelman <icewind@owncloud.com>
Mon, 4 Aug 2014 11:14:12 +0000 (13:14 +0200)
lib/repair/innodb.php

index 6f7fcfcd4c9b61645aec0b49f12477776632b088..6b795a749e95d6c6fcf53340d17761ff325802ab 100644 (file)
@@ -43,7 +43,7 @@ class InnoDB extends BasicEmitter implements \OC\RepairStep {
        private function getAllMyIsamTables($connection) {
                $dbName = \OC::$server->getConfig()->getSystemValue("dbname");
                $result = $connection->fetchArray(
-                       "SELECT table_name FROM information_schema.tables WHERE table_schema = ? AND engine = 'MyISAM'",
+                       "SELECT table_name FROM information_schema.tables WHERE table_schema = ? AND engine = 'MyISAM' AND TABLE_NAME LIKE \"*PREFIX*%\"",
                        array($dbName)
                );