2024-01-15 08:19:27 +09:00
|
|
|
/*
|
2024-02-12 11:37:45 +09:00
|
|
|
* SPDX-FileCopyrightText: syuilo and misskey-project
|
2024-01-15 08:19:27 +09:00
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
|
|
|
export class OptimizeNoteIndexForArrayColumns1705222772858 {
|
|
|
|
name = 'OptimizeNoteIndexForArrayColumns1705222772858'
|
|
|
|
|
|
|
|
async up(queryRunner) {
|
2024-01-16 05:53:58 +09:00
|
|
|
await queryRunner.query(`CREATE INDEX "IDX_NOTE_FILE_IDS" ON "note" using gin ("fileIds")`);
|
2024-01-15 08:19:27 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
async down(queryRunner) {
|
2024-01-16 05:53:58 +09:00
|
|
|
await queryRunner.query(`DROP INDEX "IDX_NOTE_FILE_IDS"`);
|
2024-01-15 08:19:27 +09:00
|
|
|
}
|
|
|
|
}
|