forked from FoundKeyGang/FoundKey
Francis Dinh
1120b6959d
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
12 lines
366 B
JavaScript
12 lines
366 B
JavaScript
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)`);
|
|
}
|
|
|
|
}
|