summary refs log tree commit diff
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2022-09-04 10:01:20 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2022-09-04 10:01:42 +0200
commit0c8559e0fa7d1796777c5fe327f8e0703e400093 (patch)
tree260652f720b3d7905a577600f363a4e651d6722a
parentflags related rights and stats api (diff)
downloadserver-0c8559e0fa7d1796777c5fe327f8e0703e400093.tar.xz
Fix migration
Migration threw a "bio contains null value" error in my testing environment.
-rw-r--r--src/util/migrations/postgres/1661885830688-guild-member-profiles.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/migrations/postgres/1661885830688-guild-member-profiles.ts b/src/util/migrations/postgres/1661885830688-guild-member-profiles.ts
index b774743b..81671250 100644
--- a/src/util/migrations/postgres/1661885830688-guild-member-profiles.ts
+++ b/src/util/migrations/postgres/1661885830688-guild-member-profiles.ts
@@ -14,7 +14,7 @@ export class guildMemberProfiles1661885830688 implements MigrationInterface {
         `);
         await queryRunner.query(`
             ALTER TABLE "members"
-            ADD "bio" character varying NOT NULL
+            ADD "bio" character varying NOT NULL default ''
         `);
         await queryRunner.query(`
             ALTER TABLE "members"