-
-
Notifications
You must be signed in to change notification settings - Fork 252
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
Unable to pass ExcludeConstraint to DropConstraintOp.from_constraint #1300
Comments
…Op.from_constraint Addresses issue sqlalchemy#1300.
… to DropConstraintOp.from_constraint)
Fixed by PR #1301 |
please ping me when you update the PR since I dont get an email |
@zzzeek - PR updated. |
d3 has proposed a fix for this issue in the main branch: Fixes #1300: Inability to pass an ExcludeConstraint object to DropConstraint.from_constraint https://gerrit.sqlalchemy.org/c/sqlalchemy/alembic/+/4832 |
d3 has proposed a fix for this issue in the main branch: Allow passoing ExcludeConstraint to DropConstraint.from_constraint https://gerrit.sqlalchemy.org/c/sqlalchemy/alembic/+/4832 |
Describe the bug
Passing an
ExcludeConstraint
object toDropConstraintOp.from_constraint
givesKeyError: 'exclude_constraint'
.Expected behavior
A new
DropConstraint
object should be returned, as it the case when passing other constraint types.To Reproduce
Can be reproduced by adding the below unit test:
Error
Versions.
The text was updated successfully, but these errors were encountered: