Add business loop generation contracts
This commit is contained in:
@@ -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