1
0
mirror of https://github.com/immich-app/immich.git synced 2024-11-28 09:33:27 +02:00

fix(server): add extension to filename migration (#7697)

This commit is contained in:
Michel Heusschen 2024-03-07 15:33:56 +01:00 committed by GitHub
parent e823b39579
commit 2dcd0e516f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,7 +10,7 @@ export class AddExtensionToOriginalFileName1709763765506 implements MigrationInt
UPDATE assets
SET "originalFileName" = assets."originalFileName" || '.' || extension."ext"
FROM extension
INNER JOIN assets a ON a.id = extension.id;
WHERE assets.id = extension.id;
`);
}