@@ -27,15 +27,12 @@ def upgrade():
27
27
if 'system_integration_extend' not in tables :
28
28
op .create_table ('system_integration_extend' ,
29
29
sa .Column ('id' , sa .BigInteger (), autoincrement = True , nullable = False ),
30
- sa .Column ('classify' , sa .Integer (), server_default = sa .text ('1' ), nullable = False , comment = '集成类型' ),
31
- sa .Column ('status' , sa .Boolean (), server_default = sa .text ('false' ), nullable = False , comment = '配置启用状态' ),
32
- sa .Column ('corp_id' , sa .Text (), nullable = True , comment = '企业id' ),
33
- sa .Column ('agent_id' , sa .Text (), nullable = True , comment = '代理Id' ),
34
- sa .Column ('app_key' , sa .Text (), nullable = True , comment = '加密key' ),
35
- sa .Column ('app_secret' , sa .Text (), nullable = True , comment = '加密密钥' ),
36
- sa .Column ('test' , sa .Boolean (), server_default = sa .text ('false' ), nullable = True , comment = '是否测试链接联通性' ),
37
- sa .Column ('config' , sa .Text (), nullable = True , comment = '其他配置' ),
38
- sa .Column ('app_id' , sa .Text (), nullable = True , comment = '应用ID' ),
30
+ sa .Column ('classify' , sa .Integer (), server_default = sa .text ('1' ), nullable = False ),
31
+ sa .Column ('status' , sa .Boolean (), server_default = sa .text ('false' ), nullable = False ),
32
+ sa .Column ('corp_id' , sa .String (length = 120 ), nullable = True ),
33
+ sa .Column ('agent_id' , sa .String (length = 120 ), nullable = True ),
34
+ sa .Column ('app_key' , sa .String (length = 120 ), nullable = True ),
35
+ sa .Column ('app_secret' , sa .Text (), nullable = True ),
39
36
sa .PrimaryKeyConstraint ('id' , name = 'system_integration_joins_pkey' )
40
37
)
41
38
with op .batch_alter_table ('system_integration_extend' , schema = None ) as batch_op :
0 commit comments