-
Notifications
You must be signed in to change notification settings - Fork 321
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
Fix for bug #40 for Password type (only) #233
Conversation
Fix makes representation consistent with constructor call by printing length as the expected max_length parameter. Note this helps downstream alembic migrations work properly too.
Thanks for the PR. Before merging this needs unit test(s). |
This doesn't work for me when I use SQLite as a backend as it somehow uses op.alter_column('user', 'password',
existing_type=sa.NUMERIC(precision=128),
type_=sqlalchemy_utils.types.password.PasswordType(max_length=128),
existing_nullable=False) |
What doesn't work? The patch? I didn't put a unit test, so there was never a PR that incorporated the patch. |
I applied the patch locally, and it didn't help me. |
Oh, yeah, this patch at least helps to produce a correct
|
ah, that i did not look into. |
It seems that I wrongly assumed that #106 refers to that SQLAlchemy-Utils fields are getting into every new Alembic migration, at least that is what I experience using SQLite for prototyping. It turned out that the only raised concern was that incorrect P.S. @dbrumley Why does your commit point to the issue #40? I think, it should point to #106. |
It appears that this PR is not going to get updated or merged. I recommend closing. |
Fix makes representation consistent with constructor call by printing
length as the expected max_length parameter. Note this helps downstream
alembic migrations work properly too.