1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-11-25 15:46:17 +09:00

Revert "Update ormconfig.ts"

This reverts commit 5a349eb376.
This commit is contained in:
syuilo 2019-06-29 15:58:04 +09:00
parent 5a349eb376
commit 763b70e01b
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

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