parent
5a349eb376
commit
763b70e01b
|
@ -1,6 +1,5 @@
|
||||||
import * as fs from 'fs';
|
import * as fs from 'fs';
|
||||||
import config from './config';
|
import config from './config';
|
||||||
import { entities as charts } from './services/chart/entities';
|
|
||||||
|
|
||||||
const json = {
|
const json = {
|
||||||
type: 'postgres',
|
type: 'postgres',
|
||||||
|
@ -10,10 +9,7 @@ const json = {
|
||||||
password: config.db.pass,
|
password: config.db.pass,
|
||||||
database: config.db.db,
|
database: config.db.db,
|
||||||
extra: config.db.extra,
|
extra: config.db.extra,
|
||||||
entities: [
|
entities: ['src/models/entities/*.ts'],
|
||||||
'src/models/entities/*.ts',
|
|
||||||
...charts as any
|
|
||||||
],
|
|
||||||
migrations: ['migration/*.ts'],
|
migrations: ['migration/*.ts'],
|
||||||
cli: {
|
cli: {
|
||||||
migrationsDir: 'migration'
|
migrationsDir: 'migration'
|
||||||
|
|
Loading…
Reference in New Issue