[mastodon-client] Fix long redirect URIs
This commit is contained in:
parent
c053b9a045
commit
2192d5c668
2 changed files with 14 additions and 1 deletions
|
@ -0,0 +1,13 @@
|
|||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class IncreaseOAuthRedirecturisLength1697246035867 implements MigrationInterface {
|
||||
name = 'IncreaseOAuthRedirecturisLength1697246035867'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE "oauth_app" ALTER "redirectUris" TYPE character varying(512) array`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE "oauth_app" ALTER "redirectUris" TYPE character varying(64) array`);
|
||||
}
|
||||
}
|
|
@ -45,7 +45,7 @@ export class OAuthApp {
|
|||
public scopes: string[];
|
||||
|
||||
@Column("varchar", {
|
||||
length: 64,
|
||||
length: 512,
|
||||
array: true,
|
||||
comment: "The redirect URIs of the OAuth application",
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue