forked from FoundKeyGang/FoundKey
backend: increase requestId max size for GNU Social
GNU Social's follow request IDs are larger than the 128 character limit of the follow_request.requestId column. This prevents follow requests from GNU Social instances from being handled by Foundkey instances. The solution is to make the requestId column larger. Fixes FoundKeyGang/FoundKey#146
This commit is contained in:
parent
406be6b213
commit
1120b6959d
2 changed files with 13 additions and 1 deletions
|
@ -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)`);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -40,7 +40,7 @@ export class FollowRequest {
|
||||||
public follower: User | null;
|
public follower: User | null;
|
||||||
|
|
||||||
@Column('varchar', {
|
@Column('varchar', {
|
||||||
length: 128, nullable: true,
|
length: 2048, nullable: true,
|
||||||
comment: 'id of Follow Activity.',
|
comment: 'id of Follow Activity.',
|
||||||
})
|
})
|
||||||
public requestId: string | null;
|
public requestId: string | null;
|
||||||
|
|
Loading…
Reference in a new issue