We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc5280c commit 3209894Copy full SHA for 3209894
backend/cli.py
@@ -69,7 +69,6 @@ async def install_plugin(
69
70
sql_file = await get_plugin_sql(plugin_name, db_type, pk_type)
71
if sql_file and not no_sql:
72
- console.print(Text('开始自动执行插件 SQL 脚本...', style='bold cyan'))
73
await execute_sql_scripts(sql_file)
74
75
except Exception as e:
@@ -80,6 +79,7 @@ async def execute_sql_scripts(sql_scripts: str) -> None:
80
79
async with async_db_session.begin() as db:
81
try:
82
stmts = await parse_sql_script(sql_scripts)
+ console.print(Text('开始自动执行插件 SQL 脚本...', style='bold cyan'))
83
for stmt in stmts:
84
await db.execute(text(stmt))
85
0 commit comments