-
Notifications
You must be signed in to change notification settings - Fork 115
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
Clarify precision/scale #314
Comments
Is there anyone with similar experience - and some more insight? |
That is pretty confusing. We could start accepting |
This is regular problem with phinx : some options are not named the same. The signed / unsigned features on numeric columns was also a problem. We implemented it as some DB engines do (with an Same thing goes for the This is what I did in the past to offer a more common interface : https://github.com/cakephp/migrations/blob/master/src/Table.php#L51-L54 But I'm not sure this is good, it adds a bit of complexity when maintaining. |
As for a note in the docs why not... It can't hurt much. |
I think we need to clarify the differences between Cake and Phinx, regarding the option keys precision, scale and limit.
The correct phinx migrations lines are:
In the fixtures it is, though:
precision/scale vs length/precision can be rather confusing IMO.
The text was updated successfully, but these errors were encountered: