Add app blueprint generation flow

This commit is contained in:
王鹏
2026-05-23 16:09:44 +08:00
parent 0fbe78868b
commit d91161a302
23 changed files with 933 additions and 12 deletions

View File

@@ -0,0 +1,17 @@
set @front_app_blueprint_exists := (
select count(1)
from information_schema.columns
where table_schema = database()
and table_name = 'front_project'
and column_name = 'app_blueprint'
);
set @front_app_blueprint_sql := if(
@front_app_blueprint_exists = 0,
'alter table front_project add column app_blueprint longtext comment ''应用蓝图草稿JSON'' after preview_status',
'select ''front_project.app_blueprint already exists'''
);
prepare front_app_blueprint_stmt from @front_app_blueprint_sql;
execute front_app_blueprint_stmt;
deallocate prepare front_app_blueprint_stmt;