1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-13 20:28:44 +01:00

[ticket/11459] Remove spaces from the end of lines in MSSQL

PHPBB3-11459
This commit is contained in:
Joas Schilling 2014-03-28 20:55:01 +01:00
parent b3560264e8
commit 0fd0be8e85

View File

@ -402,8 +402,8 @@ foreach ($supported_dbms as $dbms)
break;
case 'mssql':
$line .= "ALTER TABLE [{$table_name}] WITH NOCHECK ADD \n";
$line .= "\tCONSTRAINT [PK_{$table_name}] PRIMARY KEY CLUSTERED \n";
$line .= "ALTER TABLE [{$table_name}] WITH NOCHECK ADD\n";
$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";