2024-02-15 04:21:50 +00:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: syuilo and misskey-project
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
2024-02-28 13:25:52 +00:00
|
|
|
export class OptimizeEmojiIndex1709126576000 {
|
|
|
|
name = 'OptimizeEmojiIndex1709126576000'
|
2024-02-15 04:21:50 +00:00
|
|
|
|
|
|
|
async up(queryRunner) {
|
|
|
|
await queryRunner.query(`CREATE INDEX "IDX_EMOJI_ROLE_IDS" ON "emoji" using gin ("roleIdsThatCanBeUsedThisEmojiAsReaction")`)
|
|
|
|
await queryRunner.query(`CREATE INDEX "IDX_EMOJI_CATEGORY" ON "emoji" ("category")`)
|
|
|
|
}
|
|
|
|
|
|
|
|
async down(queryRunner) {
|
|
|
|
await queryRunner.query(`DROP INDEX "IDX_EMOJI_CATEGORY"`)
|
|
|
|
await queryRunner.query(`DROP INDEX "IDX_EMOJI_ROLE_IDS"`)
|
|
|
|
}
|
|
|
|
}
|