From b2d07ce247588223e474bd16b93dc099c61b42b8 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 21 Aug 2026 19:19:17 +0800 Subject: [PATCH] =?UTF-8?q?feat(appbase):=20params=20=E5=8A=A0=20register?= =?UTF-8?q?=5Fopen=20=E5=8F=82=E6=95=B0=20+=20=E9=BB=98=E8=AE=A4=E5=80=BC?= =?UTF-8?q?=E9=A6=96=E6=AC=A1=E6=8F=92=E5=85=A5=E4=B8=8D=E8=A6=86=E7=9B=96?= =?UTF-8?q?=EF=BC=88=E4=BF=9D=E7=95=99=20superuser=20=E8=BF=90=E8=A1=8C?= =?UTF-8?q?=E6=97=B6=E4=BF=AE=E6=94=B9=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/create_tables.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/create_tables.py b/scripts/create_tables.py index 59142a1..179e24e 100644 --- a/scripts/create_tables.py +++ b/scripts/create_tables.py @@ -40,6 +40,7 @@ CREATE TABLE IF NOT EXISTS params ( _PARAMS_INIT = [ ("workspace_base", "/d/pipeline/workspaces"), ("task_max_retry", "3"), + ("register_open", "1"), ] # sd_features 功能/需求表 DDL(手写,避开 json2ddl 的 DEFAULT ''N'' bug;索引内联避免重复建 Duplicate key name) @@ -226,7 +227,7 @@ async def main(): await sor.execute( "INSERT INTO params (id, params_name, params_value) " "VALUES (${id}$, ${n}$, ${v}$) " - "ON DUPLICATE KEY UPDATE params_value=${v}$", + "ON DUPLICATE KEY UPDATE params_name=params_name", {"id": pname, "n": pname, "v": pval}) print(' tables: appbase params ensured (workspace_base)') except Exception as e: