diff --git a/packages/services/conversation-service/src/app.module.ts b/packages/services/conversation-service/src/app.module.ts index cf6dc14..fc057c8 100644 --- a/packages/services/conversation-service/src/app.module.ts +++ b/packages/services/conversation-service/src/app.module.ts @@ -25,6 +25,8 @@ import { HealthModule } from './health/health.module'; password: configService.get('POSTGRES_PASSWORD'), database: configService.get('POSTGRES_DB', 'iconsulting'), entities: [__dirname + '/**/*.entity{.ts,.js}'], + migrations: [__dirname + '/migrations/*{.ts,.js}'], + migrationsRun: true, // 自动运行迁移 synchronize: configService.get('NODE_ENV') === 'development', logging: configService.get('NODE_ENV') === 'development', }),