summaryrefslogtreecommitdiffstats
path: root/lib/private/db/migrator.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-03-12 14:23:00 +0100
committerRobin Appelman <icewind@owncloud.com>2014-06-03 11:17:21 +0200
commit58c61c833632aec7aa45eb5817fe93b420bad574 (patch)
tree5960c0ccf758fcb29d722d7b1188a573baef831b /lib/private/db/migrator.php
parent0035147be96537193f0c7119dfd0628fe7363a26 (diff)
downloadnextcloud-server-58c61c833632aec7aa45eb5817fe93b420bad574.tar.gz
nextcloud-server-58c61c833632aec7aa45eb5817fe93b420bad574.zip
Fix generating migration test schemas
Diffstat (limited to 'lib/private/db/migrator.php')
-rw-r--r--lib/private/db/migrator.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/db/migrator.php b/lib/private/db/migrator.php
index a6c61f35424..cf95669fb83 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