From 3d314c673cc8e2bd141dd28e69e510ce40409e65 Mon Sep 17 00:00:00 2001 From: Rory& Date: Wed, 1 Jul 2026 17:37:58 +0200 Subject: [PATCH] Set index names and fix type for instance bans --- src/database/entities/InstanceBan.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/database/entities/InstanceBan.ts b/src/database/entities/InstanceBan.ts index 03424e5a5..879ad1a79 100644 --- a/src/database/entities/InstanceBan.ts +++ b/src/database/entities/InstanceBan.ts @@ -30,15 +30,15 @@ export class InstanceBan extends BaseClass { @Column() reason: string; - @Index() - @Column({ nullable: true }) + @Index("instance_bans_user_id_idx", { type: "hash" }) + @Column({ type: "int8", nullable: true }) user_id?: string; - @Index() + @Index("instance_bans_fingerprint_idx", { type: "hash" }) @Column({ nullable: true }) fingerprint?: string; - @Index() + @Index("instance_bans_ip_address_idx", { type: "hash" }) @Column({ nullable: true }) ip_address?: string;