From 7841c7df57ef2b74d4b94a0479215d9b0b4d0559 Mon Sep 17 00:00:00 2001 From: naskya Date: Sun, 31 Mar 2024 09:08:36 +0900 Subject: [PATCH] fix (backend): add alias to a migration subquery --- packages/backend/src/migration/1710304584214-note-file.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/migration/1710304584214-note-file.ts b/packages/backend/src/migration/1710304584214-note-file.ts index d58d2a0cb..a5dfe3079 100644 --- a/packages/backend/src/migration/1710304584214-note-file.ts +++ b/packages/backend/src/migration/1710304584214-note-file.ts @@ -10,7 +10,7 @@ export class NoteFile1710304584214 implements MigrationInterface { await queryRunner.query(` INSERT INTO "note_file" ("noteId", "fileId") SELECT * FROM ( SELECT "id", UNNEST("fileIds") FROM "note" - ) + ) as "s" `); await queryRunner.createIndices("note_file", [ {