PropelBundle icon indicating copy to clipboard operation
PropelBundle copied to clipboard

[v2] propel:migration:diff ignores "scale" in decimal column definition

Open ghost opened this issue 11 years ago • 2 comments

After adding a decimal column (10,2) to the schema

<column name="my_new_column" type="DECIMAL" size="10" scale="2" required="false" />

the decimals are missing in the generated migration.

ALTER TABLE `my_table`
    ADD
(
    `my_new_column` DECIMAL
);

ghost avatar Jan 26 '15 13:01 ghost

Yeah, because they are the default value.

marcj avatar Jan 26 '15 13:01 marcj

Obviously, the scale value is not always the default, although 10 for the size is correct.

marcj avatar Jan 26 '15 13:01 marcj