Add business loop generation contracts
This commit is contained in:
@@ -1311,6 +1311,7 @@ create table front_project (
|
||||
generate_status char(1) default '0' comment '数据库生成状态(0未生成 1生成中 2已生成 3失败)',
|
||||
preview_status char(1) default '0' comment '预览状态(0未预览 1已预览 2失败)',
|
||||
app_blueprint longtext comment '系统模块设计草稿JSON',
|
||||
business_loop_plan longtext NULL COMMENT '业务闭环计划',
|
||||
er_diagram longtext comment 'ER图草稿JSON',
|
||||
business_blueprint longtext comment '业务流程设计草稿JSON',
|
||||
status char(1) default '0' comment '状态(0正常 1停用)',
|
||||
|
||||
@@ -76,6 +76,23 @@ prepare front_project_er_diagram_stmt from @front_project_er_diagram_sql;
|
||||
execute front_project_er_diagram_stmt;
|
||||
deallocate prepare front_project_er_diagram_stmt;
|
||||
|
||||
set @front_project_business_loop_plan_exists := (
|
||||
select count(1)
|
||||
from information_schema.columns
|
||||
where table_schema = database()
|
||||
and table_name = 'front_project'
|
||||
and column_name = 'business_loop_plan'
|
||||
);
|
||||
|
||||
set @front_project_business_loop_plan_sql := if(
|
||||
@front_project_business_loop_plan_exists = 0,
|
||||
'alter table front_project add column business_loop_plan longtext null comment ''业务闭环计划'' after app_blueprint',
|
||||
'select ''front_project.business_loop_plan already exists'''
|
||||
);
|
||||
|
||||
prepare front_project_business_loop_plan_stmt from @front_project_business_loop_plan_sql;
|
||||
execute front_project_business_loop_plan_stmt;
|
||||
deallocate prepare front_project_business_loop_plan_stmt;
|
||||
set @front_project_business_blueprint_exists := (
|
||||
select count(1)
|
||||
from information_schema.columns
|
||||
|
||||
Reference in New Issue
Block a user