Revert "Update ormconfig.ts"
This reverts commit 5a349eb3766d84b9a9af46930e60dcf6c4ab0688.
This commit is contained in:
parent
ec99c823a4
commit
6d9660929c
1 changed files with 1 additions and 5 deletions
|
@ -1,6 +1,5 @@
|
|||
import * as fs from 'fs';
|
||||
import config from './config';
|
||||
import { entities as charts } from './services/chart/entities';
|
||||
|
||||
const json = {
|
||||
type: 'postgres',
|
||||
|
@ -10,10 +9,7 @@ const json = {
|
|||
password: config.db.pass,
|
||||
database: config.db.db,
|
||||
extra: config.db.extra,
|
||||
entities: [
|
||||
'src/models/entities/*.ts',
|
||||
...charts as any
|
||||
],
|
||||
entities: ['src/models/entities/*.ts'],
|
||||
migrations: ['migration/*.ts'],
|
||||
cli: {
|
||||
migrationsDir: 'migration'
|
||||
|
|
Loading…
Reference in a new issue