mirror of
https://github.com/silverstripe/silverstripe-mssql
synced 2024-10-22 06:05:53 +00:00
BUGFIX Fixed bug where an empty query would break dev/build in MSSQLDatabase
This commit is contained in:
parent
87760aa5b3
commit
2c193e51d3
@ -250,9 +250,11 @@ class MSSQLDatabase extends Database {
|
|||||||
|
|
||||||
//we need to generate indexes like this: CREATE INDEX IX_vault_to_export ON vault (to_export);
|
//we need to generate indexes like this: CREATE INDEX IX_vault_to_export ON vault (to_export);
|
||||||
//This needs to be done AFTER the table creation, so we can set up the fulltext indexes correctly
|
//This needs to be done AFTER the table creation, so we can set up the fulltext indexes correctly
|
||||||
if($indexes) foreach($indexes as $k => $v) $indexSchemas .= $this->getIndexSqlDefinition($tableName, $k, $v) . "\n";
|
if($indexes) foreach($indexes as $k => $v) {
|
||||||
|
$indexSchemas .= $this->getIndexSqlDefinition($tableName, $k, $v) . "\n";
|
||||||
$this->query($indexSchemas);
|
}
|
||||||
|
|
||||||
|
if($indexSchemas) $this->query($indexSchemas);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user