mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 23:03:00 -04:00
Quote tablenames
This commit is contained in:
parent
23da0c7d18
commit
144a8eb01f
1 changed files with 7 additions and 0 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue