mirror of
https://example.com
synced 2024-11-22 07:46:41 +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(`
|
await queryRunner.query(`
|
||||||
INSERT INTO "note_file" ("noteId", "fileId") SELECT * FROM (
|
INSERT INTO "note_file" ("noteId", "fileId") SELECT * FROM (
|
||||||
SELECT "id", UNNEST("fileIds") FROM "note"
|
SELECT "id", UNNEST("fileIds") FROM "note"
|
||||||
)
|
) as "s"
|
||||||
`);
|
`);
|
||||||
await queryRunner.createIndices("note_file", [
|
await queryRunner.createIndices("note_file", [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue