diff --git a/core/model/fieldtypes/Decimal.php b/core/model/fieldtypes/Decimal.php index 5b4b1630e..488e3b2ac 100644 --- a/core/model/fieldtypes/Decimal.php +++ b/core/model/fieldtypes/Decimal.php @@ -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) {