mirror of
https://github.com/silverstripe/silverstripe-mssql
synced 2024-10-22 06:05:53 +00:00
Fix defaults
This commit is contained in:
parent
2217918a2b
commit
0ec54f3359
@ -840,7 +840,7 @@ class MSSQLDatabase extends Database {
|
||||
public function int($values, $asDbValue=false){
|
||||
//We'll be using an 8 digit precision to keep it in line with the serial8 datatype for ID columns
|
||||
if($asDbValue)
|
||||
return Array('data_type'=>'numeric', 'numeric_precision'=>'8');
|
||||
return Array('data_type'=>'numeric', 'numeric_precision'=>'8', 'default'=>(int)$values['default']);
|
||||
else
|
||||
return 'numeric(8) not null default ' . (int)$values['default'];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user