refactor: make in_transaction default True

This commit is contained in:
long2ice 2023-08-04 10:35:46 +08:00
parent 467406ed20
commit 40d0823c01

View File

@ -47,7 +47,7 @@ class Command:
content=get_models_describe(self.app),
)
async def upgrade(self, run_in_transaction: bool):
async def upgrade(self, run_in_transaction: bool = True):
migrated = []
for version_file in Migrate.get_all_version_files():
try: