feat: 使用concurrently实现跨平台同时启动前后端
refactor(models): 优化模型初始化逻辑避免重复同步 refactor(OperationLog): 将createdAt索引改为operateTime docs: 添加一次性启动解决方案文档
This commit is contained in:
@@ -170,9 +170,7 @@ const initAssociations = () => {
|
||||
|
||||
const initializeModels = async () => {
|
||||
try {
|
||||
await sequelize.sync({ alter: true });
|
||||
console.log('工单相关数据表同步完成');
|
||||
|
||||
// 仅初始化关联,不再次同步表结构(避免与server.js中的sync冲突)
|
||||
initAssociations();
|
||||
await initDefaultFaultCategories();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user