summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/db/schema.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/db/schema.php b/lib/db/schema.php
index 89ab2381615..d862f3d25c9 100644
--- a/lib/db/schema.php
+++ b/lib/db/schema.php
@@ -63,6 +63,13 @@ class OC_DB_Schema {
$comparator = new \Doctrine\DBAL\Schema\Comparator();
$schemaDiff = $comparator->compare($fromSchema, $toSchema);
+ $platform = $conn->getDatabasePlatform();
+ $tables = $schemaDiff->newTables + $schemaDiff->changedTables + $schemaDiff->removedTables;
+ foreach($tables as $tableDiff) {
+ $tableDiff->name = $platform->quoteIdentifier($tableDiff->name);
+ }
+
+
//$from = $fromSchema->toSql($conn->getDatabasePlatform());
//$to = $toSchema->toSql($conn->getDatabasePlatform());
//echo($from[9]);