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 {