Also fix sequences in schemachange

remotes/origin/stable6
Bart Visscher 12 years ago
parent 947e03aab5
commit 82f0bcce30
  1. 6
      lib/db/schema.php

@ -53,6 +53,12 @@ class OC_DB_Schema {
$fromSchema->dropTable($table->getName());
}
}
// remove sequences we don't know about
foreach($fromSchema->getSequences() as $table) {
if (!$toSchema->hasSequence($table->getName())) {
$fromSchema->dropSequence($table->getName());
}
}
$comparator = new \Doctrine\DBAL\Schema\Comparator();
$schemaDiff = $comparator->compare($fromSchema, $toSchema);

Loading…
Cancel
Save