From 42ebbec813bd23c999b6be01e7f6e1e942587886 Mon Sep 17 00:00:00 2001 From: cutestnekoaqua Date: Wed, 7 Dec 2022 00:09:12 +0100 Subject: [PATCH] found my DB mistakes :skull: --- .../backend/migration/1669288094000-AddMovedToAndKnownAs.js | 2 +- packages/backend/src/models/entities/user.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/backend/migration/1669288094000-AddMovedToAndKnownAs.js b/packages/backend/migration/1669288094000-AddMovedToAndKnownAs.js index 2f11d2d7a..8b3c770ac 100644 --- a/packages/backend/migration/1669288094000-AddMovedToAndKnownAs.js +++ b/packages/backend/migration/1669288094000-AddMovedToAndKnownAs.js @@ -3,7 +3,7 @@ export class addMovedToAndKnownAs1669288094000 { async up(queryRunner) { await queryRunner.query(`ALTER TABLE "user" ADD "movedToUri" character varying(512)`); - await queryRunner.query(`ALTER TABLE "user" ADD "alsoKnownAs" TEXT []`); + await queryRunner.query(`ALTER TABLE "user" ADD "alsoKnownAs" TEXT`); await queryRunner.query(`COMMENT ON COLUMN "user"."movedToUri" IS 'The URI of the new account of the User'`); await queryRunner.query(`COMMENT ON COLUMN "user"."alsoKnownAs" IS 'URIs the user is known as too'`); } diff --git a/packages/backend/src/models/entities/user.ts b/packages/backend/src/models/entities/user.ts index 40ba3260e..3e406bdd7 100644 --- a/packages/backend/src/models/entities/user.ts +++ b/packages/backend/src/models/entities/user.ts @@ -69,6 +69,7 @@ export class User { public followingCount: number; @Column('varchar', { + length: 512, nullable: true, comment: 'The URI of the new account of the User', })