Skip to content
Discussion options

You must be logged in to vote

When I remove that table from the dump file, then running that new squashed migration against an empty db raises:

psycopg.errors.UndefinedTable: relation "alembic_version" does not exist
LINE 1: INSERT INTO alembic_version (version_num) VALUES ('48de627e2...

But the docs said the Alembic creates that table before running the migrations, no? So, I used the original dump file (the one with the alembic_version table) and then I get:

sqlalchemy.exc.ProgrammingError: (psycopg.errors.DuplicateTable) relation "alembic_version" already exists

So now that table exists? Not quite sure what’s going on.

For anyone running into this issue after trying to follow the steps above I think I found the …

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@zzzeek
Comment options

@cjw296
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by CaselIT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants