diff options
| author | Hazelnoot <acomputerdog@gmail.com> | 2025-06-03 19:08:20 -0400 |
|---|---|---|
| committer | Hazelnoot <acomputerdog@gmail.com> | 2025-06-03 19:08:20 -0400 |
| commit | d34c4df031e9c03722af9a2743015fc53de58d73 (patch) | |
| tree | 2be57f7d0337a46aacc46ac35007ac1834c2be53 /packages/backend/src/models/Instance.ts | |
| parent | create IDX_note_for_timelines (diff) | |
| download | sharkey-d34c4df031e9c03722af9a2743015fc53de58d73.tar.gz sharkey-d34c4df031e9c03722af9a2743015fc53de58d73.tar.bz2 sharkey-d34c4df031e9c03722af9a2743015fc53de58d73.zip | |
create IDX_instance_host_filters
Diffstat (limited to 'packages/backend/src/models/Instance.ts')
| -rw-r--r-- | packages/backend/src/models/Instance.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/backend/src/models/Instance.ts b/packages/backend/src/models/Instance.ts index 0022e58933..c9200e1e35 100644 --- a/packages/backend/src/models/Instance.ts +++ b/packages/backend/src/models/Instance.ts @@ -6,7 +6,8 @@ import { Entity, PrimaryColumn, Index, Column } from 'typeorm'; import { id } from './util/id.js'; -@Index('IDX_instance_host_key', { synchronize: false }) +@Index('IDX_instance_host_key', { synchronize: false }) // ((lower(reverse("host"::text)) || '.'::text) +@Index('IDX_instance_host_filters', { synchronize: false }) // ("host", "isBlocked", "isSilenced", "isMediaSilenced", "isAllowListed", "isBubbled", "suspensionState") @Entity('instance') export class MiInstance { @PrimaryColumn(id()) |