Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ghost opened this issue Jan 26, 2015 · 2 comments
Open
Labels

Comments

@ghost
Copy link

ghost commented Jan 26, 2015

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
);
@marcj
Copy link
Member

marcj commented Jan 26, 2015

Yeah, because they are the default value.

@marcj marcj closed this as completed Jan 26, 2015
@marcj marcj reopened this Jan 26, 2015
@marcj marcj added the Propel2 label Jan 26, 2015
@marcj
Copy link
Member

marcj commented Jan 26, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant