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", [ {