Skip to content

Using nuitka to distribute migration tool #1573

Discussion options

You must be logged in to vote

Maybe you will have more success using the offline mode using --sql?
This generates an SQL script given a start - end migration that you can run directly.

So your packaging would be something like this:

  • define a final revision
  • find the previous revision
  • run alembic upgrade --sql previous_rev:final_rev
  • save the migration sql file somewhere
  • write a script that loads that file and applies the migration sql on the db

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@monchin
Comment options

Answer selected by monchin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants