fix(infra): PostgreSQL → MySQL + tsconfig.build exclude frontend/
This commit is contained in:
@@ -22,7 +22,7 @@ import { HealthController } from './common/health.controller';
|
||||
imports: [ConfigModule],
|
||||
inject: [ConfigService],
|
||||
useFactory: (config: ConfigService) => ({
|
||||
type: 'postgres',
|
||||
type: 'mysql',
|
||||
url: config.get<string>('DATABASE_URL'),
|
||||
autoLoadEntities: true,
|
||||
synchronize: config.get('NODE_ENV') !== 'production',
|
||||
|
||||
@@ -6,9 +6,9 @@ import { LevelThreshold } from '../character/entities/level-threshold.entity';
|
||||
|
||||
// DataSource pour le CLI TypeORM (migrations manuelles)
|
||||
export const AppDataSource = new DataSource({
|
||||
type: 'postgres',
|
||||
url: process.env.DATABASE_URL ?? 'postgresql://tetardpg:password@localhost:5432/tetardpg',
|
||||
type: 'mysql',
|
||||
url: process.env.DATABASE_URL ?? 'mysql://tetardpg:password@172.17.0.1:3306/tetardpg',
|
||||
entities: [User, Character, LevelThreshold],
|
||||
migrations: ['src/database/migrations/*.ts'],
|
||||
migrations: ['src/migrations/*.ts'],
|
||||
synchronize: false,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user