mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
API CHANGE: Decimal->requireField now includes 'not null' constraint, as Sapphire doesn't expect the value to be null. MySQL switches null values to 0.00 on build.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@70057 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
66efcd62c7
commit
3d6a492e93
@ -25,7 +25,7 @@ class Decimal extends DBField {
|
||||
}
|
||||
|
||||
function requireField() {
|
||||
DB::requireField($this->tableName, $this->name, "decimal($this->wholeSize,$this->decimalSize)");
|
||||
DB::requireField($this->tableName, $this->name, "decimal($this->wholeSize,$this->decimalSize) not null");
|
||||
}
|
||||
|
||||
function saveInto($dataObject) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user