Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Can't Fix
-
Affects Version/s: 2.0.0-BETA4, 2.0, 2.0.1
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:mysql 5.1.49 for debian-linux-gnu (x86_64), Ubuntu 10.10 Doctrine DBAL Beta4 Doctrine ORM Beta4 Doctrine Common RC1
Description
class product {
/**
*Column(type="decimal", scale="2")
*
*/
private $discount;
}
generate SQL
create table product {
discount DECIMAL(10,2) NOT NULL
}
if you have a field in a database type DECIMAL doctrine tries to
generate for him diff
doctrine orm:schema-tool
>
ALTER TABLE product CHANGE discrount discrount NUMERIC (10, 2) NOT NULL
but mysql ignore the alter, as a result of these diff stretch from
migration to migration
This is fixed in RC1 or RC2.