Skip to content
Permalink
Browse files

Quote table name in SQLServer schema.

This allows table names with schema to work correctly.

Refs #8313
  • Loading branch information...
markstory committed Feb 24, 2016
1 parent 262ec6e commit 9f439c9f06ea3f8a62520b9442ba7fa03c6bdfc2
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Database/Schema/SqlserverSchema.php
@@ -496,7 +496,7 @@ public function truncateTableSql(Table $table)
$column = $table->column($pk[0]);
if (in_array($column['type'], ['integer', 'biginteger'])) {
$queries[] = sprintf(
'DBCC CHECKIDENT(%s, RESEED, 0)',
"DBCC CHECKIDENT('%s', RESEED, 0)",
$name
);
}

0 comments on commit 9f439c9

Please sign in to comment.
You can’t perform that action at this time.