Add business loop generation contracts

This commit is contained in:
王鹏
2026-06-29 11:04:19 +08:00
parent a979862379
commit e58ee1b183
9 changed files with 282 additions and 1 deletions

View File

@@ -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