Commit 40d9841f authored by Benjamin Eberlei's avatar Benjamin Eberlei

[DBAL-254] Fix sp_RENAME usage for table renames.

parent 79e894b4
......@@ -318,7 +318,7 @@ class SQLServerPlatform extends AbstractPlatform
$columnSql = array();
if ($diff->newName !== false) {
$queryParts[] = 'RENAME TO ' . $diff->newName;
$queryParts[] = "sp_RENAME '" . $diff->name . "', '" . $diff->newName . "'";
}
foreach ($diff->addedColumns as $column) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment