runtipi/packages/system-api/ormconfig.ts
Nicolas Meienberger 09f7dcefc9 fix: migrations
2022-08-04 22:39:31 +02:00

13 lines
294 B
TypeScript

import { DataSource } from 'typeorm';
export const connectionSource = new DataSource({
type: 'postgres',
host: 'localhost',
port: 5432,
username: 'tipi',
password: 'postgres',
database: 'tipi',
logging: true,
synchronize: false,
entities: ['src/modules/**/*.entity.ts'],
});