mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-28 13:06:44 -06:00
Update ormconfig.ts
This commit is contained in:
parent
0141affe05
commit
5a349eb376
1 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
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',
|
||||||
|
@ -9,7 +10,10 @@ 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: ['src/models/entities/*.ts'],
|
entities: [
|
||||||
|
'src/models/entities/*.ts',
|
||||||
|
...charts as any
|
||||||
|
],
|
||||||
migrations: ['migration/*.ts'],
|
migrations: ['migration/*.ts'],
|
||||||
cli: {
|
cli: {
|
||||||
migrationsDir: 'migration'
|
migrationsDir: 'migration'
|
||||||
|
|
Loading…
Reference in a new issue