Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to specific table schema for alembic_version when using flask-migrate

Tags:

alembic

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?

like image 784
kekhuay Avatar asked Feb 18 '17 14:02

kekhuay


1 Answers

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

like image 191
Miguel Avatar answered Nov 10 '22 17:11

Miguel