fix(infra): PostgreSQL → MySQL + tsconfig.build exclude frontend/

This commit is contained in:
2026-03-17 07:20:14 +01:00
parent 49b8aa1211
commit b506adf034
6 changed files with 128 additions and 6 deletions

View File

@@ -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',

View File

@@ -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,
});