From 6286dbf48954ac8f707d89415b1eff8b05a734f0 Mon Sep 17 00:00:00 2001 From: FamousMai <906631095@qq.com> Date: Sat, 19 Apr 2025 17:14:05 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BA=8C=E5=BC=80=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E8=BF=81=E7=A7=BB=E6=96=87=E4=BB=B6=EF=BC=8C=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...-588f1696997b_add_system_integration_extend.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/api/migrations_extend/versions/2025_03_31_2136-588f1696997b_add_system_integration_extend.py b/api/migrations_extend/versions/2025_03_31_2136-588f1696997b_add_system_integration_extend.py index 31941058a..12de28b03 100644 --- a/api/migrations_extend/versions/2025_03_31_2136-588f1696997b_add_system_integration_extend.py +++ b/api/migrations_extend/versions/2025_03_31_2136-588f1696997b_add_system_integration_extend.py @@ -27,12 +27,15 @@ def upgrade(): if 'system_integration_extend' not in tables: op.create_table('system_integration_extend', sa.Column('id', sa.BigInteger(), autoincrement=True, nullable=False), - sa.Column('classify', sa.Integer(), server_default=sa.text('1'), nullable=False), - sa.Column('status', sa.Boolean(), server_default=sa.text('false'), nullable=False), - sa.Column('corp_id', sa.String(length=120), nullable=True), - sa.Column('agent_id', sa.String(length=120), nullable=True), - sa.Column('app_key', sa.String(length=120), nullable=True), - sa.Column('app_secret', sa.Text(), nullable=True), + sa.Column('classify', sa.Integer(), server_default=sa.text('1'), nullable=False, comment='集成类型'), + sa.Column('status', sa.Boolean(), server_default=sa.text('false'), nullable=False, comment='配置启用状态'), + sa.Column('corp_id', sa.Text(), nullable=True, comment='企业id'), + sa.Column('agent_id', sa.Text(), nullable=True, comment='代理Id'), + sa.Column('app_key', sa.Text(), nullable=True, comment='加密key'), + sa.Column('app_secret', sa.Text(), nullable=True, comment='加密密钥'), + sa.Column('test', sa.Boolean(), server_default=sa.text('false'), nullable=True, comment='是否测试链接联通性'), + sa.Column('config', sa.Text(), nullable=True, comment='其他配置'), + sa.Column('app_id', sa.Text(), nullable=True, comment='应用ID'), sa.PrimaryKeyConstraint('id', name='system_integration_joins_pkey') ) with op.batch_alter_table('system_integration_extend', schema=None) as batch_op: