mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 13:28:55 +00:00
[ticket/9725] Remove trailing spaces from MSSQL schema
PHPBB3-9725
This commit is contained in:
parent
83be990701
commit
a2580687ee
2 changed files with 174 additions and 174 deletions
|
@ -602,7 +602,7 @@ foreach ($supported_dbms as $dbms)
|
|||
$line .= "\tCONSTRAINT [PK_{$table_name}] PRIMARY KEY CLUSTERED \n";
|
||||
$line .= "\t(\n";
|
||||
$line .= "\t\t[" . implode("],\n\t\t[", $table_data['PRIMARY_KEY']) . "]\n";
|
||||
$line .= "\t) \n";
|
||||
$line .= "\t)\n";
|
||||
$line .= "GO\n\n";
|
||||
break;
|
||||
|
||||
|
@ -697,7 +697,7 @@ foreach ($supported_dbms as $dbms)
|
|||
case 'mssql':
|
||||
$line .= ($key_data[0] == 'INDEX') ? 'CREATE INDEX' : '';
|
||||
$line .= ($key_data[0] == 'UNIQUE') ? 'CREATE UNIQUE INDEX' : '';
|
||||
$line .= " [{$key_name}] ON [{$table_name}]([" . implode('], [', $key_data[1]) . "]) \n";
|
||||
$line .= " [{$key_name}] ON [{$table_name}]([" . implode('], [', $key_data[1]) . "])\n";
|
||||
$line .= "GO\n\n";
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue