From 3f5e25dd3fe94e17dd01c9d3c93fe9143a4ba194 Mon Sep 17 00:00:00 2001 From: Rory& Date: Sat, 13 Dec 2025 02:04:24 +0100 Subject: [PATCH] Add missing migration --- .../postgres/1765587835846-InstanceBanAllowlist.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/util/migration/postgres/1765587835846-InstanceBanAllowlist.ts diff --git a/src/util/migration/postgres/1765587835846-InstanceBanAllowlist.ts b/src/util/migration/postgres/1765587835846-InstanceBanAllowlist.ts new file mode 100644 index 000000000..fd8da01ad --- /dev/null +++ b/src/util/migration/postgres/1765587835846-InstanceBanAllowlist.ts @@ -0,0 +1,14 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class InstanceBanAllowlist1765587835846 implements MigrationInterface { + name = 'InstanceBanAllowlist1765587835846' + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query(`ALTER TABLE "instance_bans" ADD "is_allowlisted" boolean NOT NULL DEFAULT false`); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query(`ALTER TABLE "instance_bans" DROP COLUMN "is_allowlisted"`); + } + +}