mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-18 08:38:09 +09:00
[mastodon-client] Fix handling of long redirect URIs in the oauth_token table
This commit is contained in:
parent
2c0a006af6
commit
c7e0659cfb
@ -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[];
|
||||
|
||||
@Column("varchar", {
|
||||
length: 64,
|
||||
length: 512,
|
||||
comment: "The redirect URI of the OAuth token",
|
||||
})
|
||||
public redirectUri: string;
|
||||
|
Loading…
Reference in New Issue
Block a user