From 40d0823c0123a9742b4074a67ec70311f080fb76 Mon Sep 17 00:00:00 2001 From: long2ice Date: Fri, 4 Aug 2023 10:35:46 +0800 Subject: [PATCH] refactor: make in_transaction default True --- aerich/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aerich/__init__.py b/aerich/__init__.py index 2109b94..3ad1e91 100644 --- a/aerich/__init__.py +++ b/aerich/__init__.py @@ -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: