summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-02-10 23:37:02 +0100
committerRory& <root@rory.gay>2026-02-10 23:37:02 +0100
commitd74fe409cf66500edc531040bba130fa7f0a972a (patch)
tree5b99341c465cb8099573c65f0a13134c1c90df2f
parentReword sqlite error (diff)
downloadserver-ts-d74fe409cf66500edc531040bba130fa7f0a972a.tar.xz
Devshell: add python setuptools
-rw-r--r--flake.nix1
-rw-r--r--src/util/migration/postgres/1770748070808-GuildDiscoveryHoisting.ts4
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> {