forked from wangziqi/gongxue-base
- imports: 新增 preflight_import 预检报告(判定/分阶段统计/阻断归因/问题/下一步/错误示例),导入任务 settings 落库(映射/校区/更新/重复/未匹配策略),预览应用策略,向导提交写操作日志 - ai-chat: 新增 excel_analyze(ExcelJS)工具,移除附件/上下文截断,start_import_wizard 支持确认参数,ui.import_preflight SSE,预览确认写操作日志 - admin: ImportPreflightCard 渲染与持久化,聊天抽屉布局/侧边栏修复,考勤页 CSS 引入,费用/学生页接口 schema 校验修复
22 lines
749 B
TypeScript
22 lines
749 B
TypeScript
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
|
|
/**
|
|
* import_runs 增加 settings_json:保存 AI 预检确认后的
|
|
* 列映射、校区归属、更新/重复/未匹配策略。
|
|
*/
|
|
export class AddImportRunSettings1784930000000 implements MigrationInterface {
|
|
async up(queryRunner: QueryRunner): Promise<void> {
|
|
if (!(await queryRunner.hasColumn('import_runs', 'settings_json'))) {
|
|
await queryRunner.query(
|
|
'ALTER TABLE import_runs ADD COLUMN settings_json text NULL',
|
|
);
|
|
}
|
|
}
|
|
|
|
async down(queryRunner: QueryRunner): Promise<void> {
|
|
if (await queryRunner.hasColumn('import_runs', 'settings_json')) {
|
|
await queryRunner.query('ALTER TABLE import_runs DROP COLUMN settings_json');
|
|
}
|
|
}
|
|
}
|