High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix: remove public. reference in migration sql (#12285)
Alexa96f41aa11a1
diff --git a/server/src/migrations/1725327902980-RemoveThumbailAtForMissingThumbnails.ts b/server/src/migrations/1725327902980-RemoveThumbailAtForMissingThumbnails.tsindex a63f281da7..98a3fe403a 100644--- a/server/src/migrations/1725327902980-RemoveThumbailAtForMissingThumbnails.ts+++ b/server/src/migrations/1725327902980-RemoveThumbailAtForMissingThumbnails.ts@@ -1,13 +1,13 @@-import { MigrationInterface, QueryRunner } from "typeorm";+import { MigrationInterface, QueryRunner } from 'typeorm';export class RemoveThumbailAtForMissingThumbnails1725327902980 implements MigrationInterface {-- public async up(queryRunner: QueryRunner): Promise<void> {- await queryRunner.query(`UPDATE "asset_job_status" j SET "thumbnailAt" = NULL WHERE j."thumbnailAt" IS NOT NULL AND NOT EXISTS ( SELECT 1 FROM public.asset_files f WHERE j."assetId" = f."assetId" AND f."type" = 'thumbnail' AND f."path" IS NOT NULL )`);- }-- public async down(): Promise<void> {- // do nothing- }-+ public async up(queryRunner: QueryRunner): Promise<void> {+ await queryRunner.query(+ `UPDATE "asset_job_status" j SET "thumbnailAt" = NULL WHERE j."thumbnailAt" IS NOT NULL AND NOT EXISTS ( SELECT 1 FROM asset_files f WHERE j."assetId" = f."assetId" AND f."type" = 'thumbnail' AND f."path" IS NOT NULL )`,+ );+ }++ public async down(): Promise<void> {+ // do nothing+ }}