mirror of
https://github.com/immich-app/immich.git
synced 2026-02-04 08:49:01 +03:00
* Setup e2e testing * Add user e2e tests * Rename database host env variable to DB_HOST * Force push (try to recover DB_HOST env) * Rename db host env variable to `DB_HOSTNAME` * Remove unnecessary `initDb` from test-utils The current database.config is running the migrations: `migrationsRun: true`
18 lines
528 B
TypeScript
18 lines
528 B
TypeScript
import { TypeOrmModuleOptions } from '@nestjs/typeorm';
|
|
|
|
export const databaseConfig: TypeOrmModuleOptions = {
|
|
type: 'postgres',
|
|
host: process.env.DB_HOSTNAME || 'immich_postgres',
|
|
port: 5432,
|
|
username: process.env.DB_USERNAME,
|
|
password: process.env.DB_PASSWORD,
|
|
database: process.env.DB_DATABASE_NAME,
|
|
entities: [__dirname + '/../**/*.entity.{js,ts}'],
|
|
synchronize: false,
|
|
migrations: [__dirname + '/../migration/*.js'],
|
|
cli: {
|
|
migrationsDir: __dirname + '/../migration',
|
|
},
|
|
migrationsRun: true,
|
|
};
|