From 2dcd0e516f5644f9a8e2357ac566d8a44cd0d5cc Mon Sep 17 00:00:00 2001 From: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> Date: Thu, 7 Mar 2024 15:33:56 +0100 Subject: [PATCH] fix(server): add extension to filename migration (#7697) --- .../migrations/1709763765506-AddExtensionToOriginalFileName.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/infra/migrations/1709763765506-AddExtensionToOriginalFileName.ts b/server/src/infra/migrations/1709763765506-AddExtensionToOriginalFileName.ts index 526d09ccf4..d1f73b4e3b 100644 --- a/server/src/infra/migrations/1709763765506-AddExtensionToOriginalFileName.ts +++ b/server/src/infra/migrations/1709763765506-AddExtensionToOriginalFileName.ts @@ -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; `); }