Browse Source

Quote table name in SQLServer schema.

This allows table names with schema to work correctly.

Refs #8313
Mark Story 10 years ago
parent
commit
9f439c9f06
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Database/Schema/SqlserverSchema.php

+ 1 - 1
src/Database/Schema/SqlserverSchema.php

@@ -496,7 +496,7 @@ class SqlserverSchema extends BaseSchema
             $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
                 );
             }