[mastodon-client] Fix long redirect URIs

This commit is contained in:
Laura Hausmann 2023-10-14 03:12:17 +02:00
parent c053b9a045
commit 2192d5c668
No known key found for this signature in database
GPG key ID: D044E84C5BE01605
2 changed files with 14 additions and 1 deletions

View file

@ -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`);
}
}

View file

@ -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",
})