mirror of
https://github.com/immich-app/immich.git
synced 2025-12-25 09:14:58 +03:00
feat: clean up old reports of checksum or missing files
refactor: combine the stream query
This commit is contained in:
@@ -62,6 +62,10 @@ 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));
|
||||
};
|
||||
|
||||
@@ -130,6 +134,10 @@ 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