From 919eb839efbd96020635e4d594fe4d03f6791ab9 Mon Sep 17 00:00:00 2001 From: izzy Date: Thu, 27 Nov 2025 16:14:03 +0000 Subject: [PATCH] revert: override migration db url --- server/src/bin/migrations.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/server/src/bin/migrations.ts b/server/src/bin/migrations.ts index 8c873c4274..588f358023 100644 --- a/server/src/bin/migrations.ts +++ b/server/src/bin/migrations.ts @@ -62,10 +62,6 @@ const main = async () => { const getDatabaseClient = () => { const configRepository = new ConfigRepository(); const { database } = configRepository.getEnv(); - database.config = { - connectionType: 'url', - url: 'postgres://postgres:postgres@database:5432/immich', - }; return new Kysely(getKyselyConfig(database.config)); }; @@ -134,10 +130,6 @@ const create = (path: string, up: string[], down: string[]) => { const compare = async () => { const configRepository = new ConfigRepository(); const { database } = configRepository.getEnv(); - database.config = { - connectionType: 'url', - url: 'postgres://postgres:postgres@database:5432/immich', - }; const db = postgres(asPostgresConnectionConfig(database.config)); const source = schemaFromCode({ overrides: true, namingStrategy: 'default' });