File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -280,7 +280,7 @@ protected function _getPortableTableForeignKeysList(array $rows): array
280280 }
281281
282282 $ list [$ row ['constraint_name ' ]] = [
283- 'name ' => $ row ['constraint_name ' ],
283+ 'name ' => $ this -> getQuotedIdentifierName ( $ row ['constraint_name ' ]) ,
284284 'local ' => [],
285285 'foreign ' => [],
286286 'foreignTable ' => $ row ['referenced_table_name ' ],
@@ -524,4 +524,14 @@ private function getDefaultTableOptions(): DefaultTableOptions
524524
525525 return $ this ->defaultTableOptions ;
526526 }
527+
528+ /** Returns the quoted representation of the given identifier name. */
529+ private function getQuotedIdentifierName (?string $ identifier ): ?string
530+ {
531+ if ($ identifier === null ) {
532+ return null ;
533+ }
534+
535+ return $ this ->platform ->quoteSingleIdentifier ($ identifier );
536+ }
527537}
You can’t perform that action at this time.
0 commit comments