Details
-
Type:
New Feature
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.0.0-RC1-RC3
-
Component/s: None
-
Labels:None
Description
The former supported column type "float" is not defined in Doctrine\DBAL\Types\Type.
I noticed that floats are mapped like numerics/decimals within mysq right nowl:
protected function _getPortableTableColumnDefinition($tableColumn) { ... // Map db type to Doctrine mapping type switch ($dbType) { ... case 'float': case 'double': case 'real': case 'numeric': $type = 'decimal'; break;
I suggest to map them to a "true" float and double as available in mysql, since they use less storage space compared to numerics with fixed decimals in certain cirtumstances (-> performance issue). http://dev.mysql.com/doc/refman/5.0/en/storage-requirements.html
This issue was already fixed before. Check out line 192 in MySqlSchemaManager.php