feat: 指定のロールはリアクションに使えないカスタム絵文字 (MisskeyIO#136)

This commit is contained in:
まっちゃとーにゅ
2023-08-07 23:16:33 +09:00
committed by GitHub
parent 42a90f56e1
commit 3b73874196
16 changed files with 102 additions and 10 deletions

View File

@@ -0,0 +1,11 @@
export class CustomemojiRestrictedRoles1691317808362 {
name = 'CustomemojiRestrictedRoles1691317808362'
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "emoji" ADD "roleIdsThatCanNotBeUsedThisEmojiAsReaction" character varying(128) array NOT NULL DEFAULT '{}'`);
}
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "emoji" DROP COLUMN "roleIdsThatCanNotBeUsedThisEmojiAsReaction"`);
}
}