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

alembic_utils dependency on alembic op in single migration #43

Closed
wants to merge 2 commits into from

Conversation

olirice
Copy link
Owner

@olirice olirice commented Apr 23, 2021

Execute required ops from alembic when resolving required ops for alembic_utils ReplaceableEntities

@olirice
Copy link
Owner Author

olirice commented Apr 23, 2021

resolves #41

@olirice
Copy link
Owner Author

olirice commented Apr 23, 2021

@mjpieters would you be able to check out this branch and test if it resolves your use-case / provide usage feedback?

@olirice
Copy link
Owner Author

olirice commented May 3, 2021

The holdup on this is that if the alembic (non-utils) operations are expensive e.g. adding a new column with a server default to a large existing table, resolving the correct migration op for the alembic_utils entities is extremely expensive.

Currently thinking about whitelisting certain alembic ops or altering them before executing to ensure that they all execute quickly, but that is significantly more complicated that this draft

@olirice
Copy link
Owner Author

olirice commented May 12, 2021

Seen error

ValueError: no dispatch function for object: <alembic.operations.ops.ModifyTableOps object at 0x10a4ba880>

requires investigation

@olirice olirice closed this Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant