From b7f3535d093cc75fc665b5ffd4ed9d5b563f1aff Mon Sep 17 00:00:00 2001 From: Rory& Date: Tue, 10 Feb 2026 22:26:30 +0100 Subject: Add discovery filtering --- .../postgres/1770748070808-GuildDiscoveryHoisting.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/util/migration/postgres/1770748070808-GuildDiscoveryHoisting.ts (limited to 'src/util/migration/postgres') diff --git a/src/util/migration/postgres/1770748070808-GuildDiscoveryHoisting.ts b/src/util/migration/postgres/1770748070808-GuildDiscoveryHoisting.ts new file mode 100644 index 000000000..de8783883 --- /dev/null +++ b/src/util/migration/postgres/1770748070808-GuildDiscoveryHoisting.ts @@ -0,0 +1,15 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class GuildDiscoveryHoisting1770748070808 implements MigrationInterface { + name = "GuildDiscoveryHoisting1770748070808"; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query(`ALTER TABLE "guilds" ADD "discovery_weight" integer NOT NULL`); + await queryRunner.query(`ALTER TABLE "guilds" ADD "discovery_excluded" boolean NOT NULL`); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query(`ALTER TABLE "guilds" DROP COLUMN "discovery_excluded"`); + await queryRunner.query(`ALTER TABLE "guilds" DROP COLUMN "discovery_weight"`); + } +} -- cgit 1.5.1