Search code examples
pythonsqlalchemyalembic

Alembic, how do you change the name of the revision database?


I am working with alembic and it automatically creates a table called alembic_revision on your database. How, do I specify the name of this table instead of using the default name?


Solution

  • After you run your init. Open the env.py file and update context.configure, add version_table='alembic_version_your_name as a kwarg.