Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 700
spitfiredd Avatar asked Jan 28 '23 23:01

spitfiredd


1 Answers

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

like image 102
spitfiredd Avatar answered Jan 31 '23 11:01

spitfiredd