How to Specific Table Schema for Alembic_Version When Using Flask-Migrate

I using flask-migrate with PostgreSQL, when I execute python manage.py db upgrade command it will generate alembic_version table in public schema. How can I change the default schema when generate the alembic_version table?

1 Answer

There is a version_table_schema argument to the configure() call. You can edit this in the env.py file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Chloe Bennett

Chloe Bennett

Culture, Media & Entertainment Columnist

Chloe Bennett explores the intersection of pop culture, streaming entertainment, digital trends, and contemporary lifestyle. Her weekly commentary reaches thousands of culture enthusiasts.

Share this article
Twitter Facebook Pinterest