mirror of
https://github.com/silverstripe/silverstripe-mssql
synced 2024-10-22 08:05:53 +02:00
BUGFIX Added missing parameters to MSSQLDatabase::createTable() and MSSQLDatabase::alterTable() that were introuced in r88293
This commit is contained in:
parent
fb5dc5c298
commit
fe67223740
@ -312,7 +312,7 @@ class MSSQLDatabase extends Database {
|
|||||||
* - 'temporary' - If true, then a temporary table will be created
|
* - 'temporary' - If true, then a temporary table will be created
|
||||||
* @return The table name generated. This may be different from the table name, for example with temporary tables.
|
* @return The table name generated. This may be different from the table name, for example with temporary tables.
|
||||||
*/
|
*/
|
||||||
public function createTable($tableName, $fields = null, $indexes = null, $options = null) {
|
public function createTable($tableName, $fields = null, $indexes = null, $options = null, $advancedOptions = null) {
|
||||||
$fieldSchemas = $indexSchemas = "";
|
$fieldSchemas = $indexSchemas = "";
|
||||||
if($fields) foreach($fields as $k => $v) $fieldSchemas .= "\"$k\" $v,\n";
|
if($fields) foreach($fields as $k => $v) $fieldSchemas .= "\"$k\" $v,\n";
|
||||||
|
|
||||||
@ -343,7 +343,7 @@ class MSSQLDatabase extends Database {
|
|||||||
* @param $alteredFields Updated fields, a map of field name => field schema
|
* @param $alteredFields Updated fields, a map of field name => field schema
|
||||||
* @param $alteredIndexes Updated indexes, a map of index name => index type
|
* @param $alteredIndexes Updated indexes, a map of index name => index type
|
||||||
*/
|
*/
|
||||||
public function alterTable($tableName, $newFields = null, $newIndexes = null, $alteredFields = null, $alteredIndexes = null) {
|
public function alterTable($tableName, $newFields = null, $newIndexes = null, $alteredFields = null, $alteredIndexes = null, $alteredOptions=null, $advancedOptions=null) {
|
||||||
$fieldSchemas = $indexSchemas = "";
|
$fieldSchemas = $indexSchemas = "";
|
||||||
|
|
||||||
$alterList = array();
|
$alterList = array();
|
||||||
|
Loading…
Reference in New Issue
Block a user