2024-01-14 23:19:27 +00:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
|
|
|
export class OptimizeNoteIndexForArrayColumns1705222772858 {
|
|
|
|
name = 'OptimizeNoteIndexForArrayColumns1705222772858'
|
|
|
|
|
|
|
|
async up(queryRunner) {
|
2024-01-15 20:53:58 +00:00
|
|
|
await queryRunner.query(`CREATE INDEX "IDX_NOTE_FILE_IDS" ON "note" using gin ("fileIds")`);
|
2024-01-14 23:19:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
async down(queryRunner) {
|
2024-01-15 20:53:58 +00:00
|
|
|
await queryRunner.query(`DROP INDEX "IDX_NOTE_FILE_IDS"`);
|
2024-01-14 23:19:27 +00:00
|
|
|
}
|
|
|
|
}
|