2024-01-15 00:19:27 +01: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 21:53:58 +01:00
|
|
|
await queryRunner.query(`CREATE INDEX "IDX_NOTE_FILE_IDS" ON "note" using gin ("fileIds")`);
|
2024-01-15 00:19:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
async down(queryRunner) {
|
2024-01-15 21:53:58 +01:00
|
|
|
await queryRunner.query(`DROP INDEX "IDX_NOTE_FILE_IDS"`);
|
2024-01-15 00:19:27 +01:00
|
|
|
}
|
|
|
|
}
|