[英]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. 我正在使用alembic,它会在您的数据库上自动创建一个名为
alembic_revision
的表。 How, do I specify the name of this table instead of using the default name? 如何指定此表的名称,而不使用默认名称?
After you run your init. 运行init之后。 Open the
env.py
file and update context.configure
, add version_table='alembic_version_your_name
as a kwarg. 打开
env.py
文件并更新context.configure
,将version_table='alembic_version_your_name
添加为kwarg。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.