mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 09:57:29 -07:00
[mastodon-client] Fix handling of long redirect URIs in the oauth_token table
This commit is contained in:
parent
2c0a006af6
commit
c7e0659cfb
2 changed files with 15 additions and 1 deletions
|
@ -0,0 +1,14 @@
|
||||||
|
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||||
|
|
||||||
|
export class IncreaseOauthTokenRedirecturisLength1697286869039 implements MigrationInterface {
|
||||||
|
name = 'IncreaseOauthTokenRedirecturisLength1697286869039'
|
||||||
|
|
||||||
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||||
|
await queryRunner.query(`ALTER TABLE "oauth_token" ALTER "redirectUri" TYPE character varying(512)`);
|
||||||
|
}
|
||||||
|
|
||||||
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||||
|
await queryRunner.query(`ALTER TABLE "oauth_token" ALTER "redirectUri" TYPE character varying(64)`);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -58,7 +58,7 @@ export class OAuthToken {
|
||||||
public scopes: string[];
|
public scopes: string[];
|
||||||
|
|
||||||
@Column("varchar", {
|
@Column("varchar", {
|
||||||
length: 64,
|
length: 512,
|
||||||
comment: "The redirect URI of the OAuth token",
|
comment: "The redirect URI of the OAuth token",
|
||||||
})
|
})
|
||||||
public redirectUri: string;
|
public redirectUri: string;
|
||||||
|
|
Loading…
Reference in a new issue