diff options
| author | anatawa12 <anatawa12@icloud.com> | 2025-07-16 15:49:05 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-16 15:49:05 +0900 |
| commit | 6f6fdfe28e3638e09ee1452fd2a8bb4271e1d0ce (patch) | |
| tree | ee61252eaa0aa57ec4fc7b380b6637549c624af0 /packages/backend/src/models/Emoji.ts | |
| parent | enhance(backend): usernameに対してもprohibitedWordsForNameOfUserを適... (diff) | |
| download | misskey-6f6fdfe28e3638e09ee1452fd2a8bb4271e1d0ce.tar.gz misskey-6f6fdfe28e3638e09ee1452fd2a8bb4271e1d0ce.tar.bz2 misskey-6f6fdfe28e3638e09ee1452fd2a8bb4271e1d0ce.zip | |
Migration cleanup (#16288)
* chore: apply several @Index and @ManyToOne to match actual migration code
* chore: several decorator updates with typeorm bug workaround with patches
* feat: add final cleanup migration
* dev: add .editorconfig settings for generated migrations
* chore: update dockerfile to build package with patches
* chore: update federation test compose to include patches
* chore: revert few dependency update
* chore: don't check disableRegistration on test env
* test: add test for checking migration script
* chore: set proxyRemoteFiles true in test config
* chore: enter invitation code in signup test
* fix: register send button is not disabled when invitationCode is not input
Diffstat (limited to 'packages/backend/src/models/Emoji.ts')
| -rw-r--r-- | packages/backend/src/models/Emoji.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/backend/src/models/Emoji.ts b/packages/backend/src/models/Emoji.ts index d62b6e9f6f..8dff8fd153 100644 --- a/packages/backend/src/models/Emoji.ts +++ b/packages/backend/src/models/Emoji.ts @@ -8,6 +8,7 @@ import { id } from './util/id.js'; @Entity('emoji') @Index(['name', 'host'], { unique: true }) +@Index('IDX_EMOJI_ROLE_IDS', { synchronize: false }) // GIN for roleIdsThatCanBeUsedThisEmojiAsReaction in production export class MiEmoji { @PrimaryColumn(id()) public id: string; @@ -32,6 +33,7 @@ export class MiEmoji { @Column('varchar', { length: 128, nullable: true, }) + @Index('IDX_EMOJI_CATEGORY') public category: string | null; @Column('varchar', { |