Skip to content

Commit 3209894

Browse files
committed
Update the sql print
1 parent dc5280c commit 3209894

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ async def install_plugin(
6969

7070
sql_file = await get_plugin_sql(plugin_name, db_type, pk_type)
7171
if sql_file and not no_sql:
72-
console.print(Text('开始自动执行插件 SQL 脚本...', style='bold cyan'))
7372
await execute_sql_scripts(sql_file)
7473

7574
except Exception as e:
@@ -80,6 +79,7 @@ async def execute_sql_scripts(sql_scripts: str) -> None:
8079
async with async_db_session.begin() as db:
8180
try:
8281
stmts = await parse_sql_script(sql_scripts)
82+
console.print(Text('开始自动执行插件 SQL 脚本...', style='bold cyan'))
8383
for stmt in stmts:
8484
await db.execute(text(stmt))
8585
except Exception as e:

0 commit comments

Comments
 (0)