mirror of
https://example.com
synced 2024-11-24 13:06:40 +09:00
fix (backend): add alias to a migration subquery
This commit is contained in:
parent
bd859b814f
commit
7841c7df57
1 changed files with 1 additions and 1 deletions
|
@ -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", [
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue