简体   繁体   中英

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM