20

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?

Braiam
  • 1
  • 11
  • 47
  • 78
kekhuay
  • 377
  • 2
  • 3
  • 17

1 Answers1

28

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

Miguel Grinberg
  • 65,299
  • 14
  • 133
  • 152