]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix generating migration test schemas
authorRobin Appelman <icewind@owncloud.com>
Wed, 12 Mar 2014 13:23:00 +0000 (14:23 +0100)
committerRobin Appelman <icewind@owncloud.com>
Tue, 3 Jun 2014 09:17:21 +0000 (11:17 +0200)
lib/private/db/migrator.php

index a6c61f35424ba106808442f98c8d08dfe95f0c38..cf95669fb83663ceea6491aa8aa6ab372f37badc 100644 (file)
@@ -88,11 +88,14 @@ class Migrator {
         * @return \Doctrine\DBAL\Schema\Table
         */
        protected function renameTableSchema(Table $table, $newName) {
+               /**
+                * @var \Doctrine\DBAL\Schema\Index[] $indexes
+                */
                $indexes = $table->getIndexes();
                $newIndexes = array();
                foreach ($indexes as $index) {
                        $indexName = uniqid(); // avoid conflicts in index names
-                       $newIndexes[] = new Index($indexName, $index->getColumns(), $index->isUnique(), $index->isPrimary(), $index->getFlags());
+                       $newIndexes[] = new Index($indexName, $index->getColumns(), $index->isUnique(), $index->isPrimary());
                }
 
                // foreign keys are not supported so we just set it to an empty array