Devshell: add python setuptools
2 files changed, 3 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index ab482c6a..2d3d8925 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 de878388..5d0d84a9 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<void> {
- 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<void> {
|