From 58c61c833632aec7aa45eb5817fe93b420bad574 Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind@owncloud.com>
Date: Wed, 12 Mar 2014 14:23:00 +0100
Subject: [PATCH] Fix generating migration test schemas

---
 lib/private/db/migrator.php | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/private/db/migrator.php b/lib/private/db/migrator.php
index a6c61f3542..cf95669fb8 100644
--- a/lib/private/db/migrator.php
+++ b/lib/private/db/migrator.php
@@ -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
-- 
GitLab