From d74fe409cf66500edc531040bba130fa7f0a972a Mon Sep 17 00:00:00 2001 From: Rory& Date: Tue, 10 Feb 2026 23:37:02 +0100 Subject: [PATCH] Devshell: add python setuptools --- flake.nix | 1 + .../postgres/1770748070808-GuildDiscoveryHoisting.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index ab482c6aa..2d3d89251 100644 --- a/flake.nix +++ b/flake.nix @@ -70,6 +70,7 @@ nodePackages.typescript nodePackages.patch-package nodePackages.prettier + (pkgs.python3.withPackages (ps: with ps; [ setuptools ])) ]; }; } diff --git a/src/util/migration/postgres/1770748070808-GuildDiscoveryHoisting.ts b/src/util/migration/postgres/1770748070808-GuildDiscoveryHoisting.ts index de8783883..5d0d84a9d 100644 --- a/src/util/migration/postgres/1770748070808-GuildDiscoveryHoisting.ts +++ b/src/util/migration/postgres/1770748070808-GuildDiscoveryHoisting.ts @@ -4,8 +4,8 @@ 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`); + await queryRunner.query(`ALTER TABLE "guilds" ADD "discovery_weight" integer NOT NULL DEFAULT 0`); + await queryRunner.query(`ALTER TABLE "guilds" ADD "discovery_excluded" boolean NOT NULL DEFAULT FALSE`); } public async down(queryRunner: QueryRunner): Promise {