feat: clean up old reports of checksum or missing files

refactor: combine the stream query
This commit is contained in:
izzy
2025-11-27 15:13:19 +00:00
parent 929ad529f4
commit cc31b9c7f1
5 changed files with 84 additions and 40 deletions

View File

@@ -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' });