fix(migrations): data-source.ts — 14 entities (11 ajoutées pour CLI TypeORM)
This commit is contained in:
@@ -3,12 +3,38 @@ import { DataSource } from 'typeorm';
|
|||||||
import { User } from '../user/user.entity';
|
import { User } from '../user/user.entity';
|
||||||
import { Character } from '../character/entities/character.entity';
|
import { Character } from '../character/entities/character.entity';
|
||||||
import { LevelThreshold } from '../character/entities/level-threshold.entity';
|
import { LevelThreshold } from '../character/entities/level-threshold.entity';
|
||||||
|
import { CombatLog } from '../combat/combat-log.entity';
|
||||||
|
import { Item } from '../item/item.entity';
|
||||||
|
import { CharacterItem } from '../item/character-item.entity';
|
||||||
|
import { Material } from '../material/material.entity';
|
||||||
|
import { CharacterMaterial } from '../material/character-material.entity';
|
||||||
|
import { Transaction } from '../economy/entities/transaction.entity';
|
||||||
|
import { TetardCoin } from '../economy/entities/tetard-coin.entity';
|
||||||
|
import { ProcessedEvent } from '../twitch/entities/processed-event.entity';
|
||||||
|
import { Recipe } from '../craft/recipe.entity';
|
||||||
|
import { CraftJob } from '../craft/craft-job.entity';
|
||||||
|
import { Monster } from '../monster/monster.entity';
|
||||||
|
|
||||||
// DataSource pour le CLI TypeORM (migrations manuelles)
|
// DataSource pour le CLI TypeORM (migrations manuelles)
|
||||||
export const AppDataSource = new DataSource({
|
export const AppDataSource = new DataSource({
|
||||||
type: 'mysql',
|
type: 'mysql',
|
||||||
url: process.env.DATABASE_URL ?? 'mysql://tetardpg:password@172.17.0.1:3306/tetardpg',
|
url: process.env.DATABASE_URL ?? 'mysql://tetardpg:password@172.17.0.1:3306/tetardpg',
|
||||||
entities: [User, Character, LevelThreshold],
|
entities: [
|
||||||
|
User,
|
||||||
|
Character,
|
||||||
|
LevelThreshold,
|
||||||
|
CombatLog,
|
||||||
|
Item,
|
||||||
|
CharacterItem,
|
||||||
|
Material,
|
||||||
|
CharacterMaterial,
|
||||||
|
Transaction,
|
||||||
|
TetardCoin,
|
||||||
|
ProcessedEvent,
|
||||||
|
Recipe,
|
||||||
|
CraftJob,
|
||||||
|
Monster,
|
||||||
|
],
|
||||||
migrations: ['src/migrations/*.ts'],
|
migrations: ['src/migrations/*.ts'],
|
||||||
synchronize: false,
|
synchronize: false,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user