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', })