updated routing to fix several issues.
This commit is contained in:
@@ -23,9 +23,9 @@ class SQLServer extends Grammar {
|
||||
{
|
||||
$columns = implode(', ', $this->columns($table));
|
||||
|
||||
// First we will generate the base table creation statement. Other than
|
||||
// auto-incrementing keys, no indexes will be created during the first
|
||||
// creation of the table. They will be added in separate commands.
|
||||
// First we will generate the base table creation statement. Other than incrementing
|
||||
// keys, no indexes will be created during the first creation of the table since
|
||||
// they will be added in separate commands.
|
||||
$sql = 'CREATE TABLE '.$this->wrap($table).' ('.$columns.')';
|
||||
|
||||
return $sql;
|
||||
@@ -42,9 +42,9 @@ class SQLServer extends Grammar {
|
||||
{
|
||||
$columns = $this->columns($table);
|
||||
|
||||
// Once we the array of column definitions, we need to add "add"
|
||||
// to the front of each definition, then we'll concatenate the
|
||||
// definitions using commas like normal and generate the SQL.
|
||||
// Once we the array of column definitions, we need to add "add" to the front
|
||||
// of each definition, then we'll concatenate the definitions using commas
|
||||
// like normal and generate the SQL.
|
||||
$columns = implode(', ', array_map(function($column)
|
||||
{
|
||||
return 'ADD '.$column;
|
||||
@@ -166,18 +166,18 @@ class SQLServer extends Grammar {
|
||||
{
|
||||
$columns = $this->columnize($command->columns);
|
||||
|
||||
// SQL Server requires the creation of a full-text "catalog" before
|
||||
// creating a full-text index, so we'll first create the catalog
|
||||
// then add another statement for the index. The catalog will
|
||||
// be updated automatically by the server.
|
||||
$table = $this->wrap($table);
|
||||
|
||||
// SQL Server requires the creation of a full-text "catalog" before creating
|
||||
// a full-text index, so we'll first create the catalog then add another
|
||||
// separate statement for the index.
|
||||
$sql[] = "CREATE FULLTEXT CATALOG {$command->catalog}";
|
||||
|
||||
$create = "CREATE FULLTEXT INDEX ON ".$this->wrap($table)." ({$columns}) ";
|
||||
$create = "CREATE FULLTEXT INDEX ON ".$table." ({$columns}) ";
|
||||
|
||||
// Full-text indexes must specify a unique, non-nullable column as
|
||||
// the index "key" and this should have been created manually by
|
||||
// the developer in a separate column addition command, so we
|
||||
// can just specify it in this statement.
|
||||
// Full-text indexes must specify a unique, non-null column as the index
|
||||
// "key" and this should have been created manually by the developer in
|
||||
// a separate column addition command.
|
||||
$sql[] = $create .= "KEY INDEX {$command->key} ON {$command->catalog}";
|
||||
|
||||
return $sql;
|
||||
@@ -235,9 +235,9 @@ class SQLServer extends Grammar {
|
||||
{
|
||||
$columns = array_map(array($this, 'wrap'), $command->columns);
|
||||
|
||||
// Once we the array of column names, we need to add "drop" to the
|
||||
// front of each column, then we'll concatenate the columns using
|
||||
// commas and generate the alter statement SQL.
|
||||
// Once we the array of column names, we need to add "drop" to the front
|
||||
// of each column, then we'll concatenate the columns using commas and
|
||||
// generate the alter statement SQL.
|
||||
$columns = implode(', ', array_map(function($column)
|
||||
{
|
||||
return 'DROP '.$column;
|
||||
|
||||
Reference in New Issue
Block a user