BUGFIX Float should always be not null and default 0 in the database

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@102686 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2010-04-13 04:05:03 +00:00 committed by Sam Minnee
parent 3588f6cf16
commit f6731e3efb
2 changed files with 2 additions and 2 deletions

View File

@ -631,7 +631,7 @@ class MySQLDatabase extends SS_Database {
//$parts=Array('datatype'=>'float');
//DB::requireField($this->tableName, $this->name, "float");
return 'float';
return 'float not null default ' . $values['default'];
}
/**