diff --git a/packages/backend/migration/1662943835603-larger-follow-request-ids.js b/packages/backend/migration/1662943835603-larger-follow-request-ids.js new file mode 100644 index 000000000..f13401d51 --- /dev/null +++ b/packages/backend/migration/1662943835603-larger-follow-request-ids.js @@ -0,0 +1,12 @@ +export class largerFollowRequestIds1662943835603 { + name = 'largerFollowRequestIds1662943835603'; + + async up(queryRunner) { + await queryRunner.query(`ALTER TABLE "follow_request" ALTER COLUMN "requestId" TYPE VARCHAR(2048)`); + } + + async down(queryRunner) { + await queryRunner.query(`ALTER TABLE "follow_request" ALTER COLUMN "requestId" TYPE VARCHAR(128)`); + } + +} diff --git a/packages/backend/src/models/entities/follow-request.ts b/packages/backend/src/models/entities/follow-request.ts index 3a2e48ce9..cd0acc453 100644 --- a/packages/backend/src/models/entities/follow-request.ts +++ b/packages/backend/src/models/entities/follow-request.ts @@ -40,7 +40,7 @@ export class FollowRequest { public follower: User | null; @Column('varchar', { - length: 128, nullable: true, + length: 2048, nullable: true, comment: 'id of Follow Activity.', }) public requestId: string | null;