mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 12:13:48 +01:00
Update ormconfig.ts
This commit is contained in:
parent
2bcbe47cd6
commit
ec99c823a4
@ -1,5 +1,6 @@
|
||||
import * as fs from 'fs';
|
||||
import config from './config';
|
||||
import { entities as charts } from './services/chart/entities';
|
||||
|
||||
const json = {
|
||||
type: 'postgres',
|
||||
@ -9,7 +10,10 @@ const json = {
|
||||
password: config.db.pass,
|
||||
database: config.db.db,
|
||||
extra: config.db.extra,
|
||||
entities: ['src/models/entities/*.ts'],
|
||||
entities: [
|
||||
'src/models/entities/*.ts',
|
||||
...charts as any
|
||||
],
|
||||
migrations: ['migration/*.ts'],
|
||||
cli: {
|
||||
migrationsDir: 'migration'
|
||||
|
Loading…
Reference in New Issue
Block a user