mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
Update server dependencies and fixed Typeorm API changes in new version (#276)
* Fixed dependencies * Adapt typeorm API to be compatible with new version * Fixed typeorm API in tests * Remove console.log
This commit is contained in:
parent
5f00d8b9c6
commit
a2e1d4caa2
13 changed files with 1166 additions and 1247 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import { TypeOrmModuleOptions } from '@nestjs/typeorm';
|
||||
import { PostgresConnectionOptions } from 'typeorm/driver/postgres/PostgresConnectionOptions';
|
||||
|
||||
export const databaseConfig: TypeOrmModuleOptions = {
|
||||
export const databaseConfig: PostgresConnectionOptions = {
|
||||
type: 'postgres',
|
||||
host: process.env.DB_HOSTNAME || 'immich_postgres',
|
||||
port: 5432,
|
||||
|
|
@ -10,11 +11,7 @@ export const databaseConfig: TypeOrmModuleOptions = {
|
|||
entities: [__dirname + '/../**/*.entity.{js,ts}'],
|
||||
synchronize: false,
|
||||
migrations: [__dirname + '/../migrations/*.{js,ts}'],
|
||||
cli: {
|
||||
migrationsDir: __dirname + '/../migrations',
|
||||
},
|
||||
migrationsRun: true,
|
||||
autoLoadEntities: true,
|
||||
};
|
||||
|
||||
export default databaseConfig;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue