mirror of
https://github.com/immich-app/immich.git
synced 2025-12-27 09:14:55 +03:00
revert: override migration db url
This commit is contained in:
@@ -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<any>(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' });
|
||||
|
||||
Reference in New Issue
Block a user