export class IncreaseSmtpUsernameLength1779125489830 {
    constructor() {
        this.name = "IncreaseSmtpUsernameLength1779125489830";
    }
    async up(queryRunner) {
        /*
         * Widen SMTP username columns from varchar(100) to varchar(500) to support
         * longer usernames. Providers such as Oracle Cloud Infrastructure (OCI)
         * issue SMTP usernames that follow RFC 6409 and RFC 4616, which allow up
         * to 255 bytes and can exceed the previous 100 character ceiling.
         */
        await queryRunner.query(`ALTER TABLE "ProjectSMTPConfig" ALTER COLUMN "username" TYPE character varying(500)`);
        await queryRunner.query(`ALTER TABLE "GlobalConfig" ALTER COLUMN "smtpUsername" TYPE character varying(500)`);
    }
    async down(queryRunner) {
        await queryRunner.query(`ALTER TABLE "GlobalConfig" ALTER COLUMN "smtpUsername" TYPE character varying(100)`);
        await queryRunner.query(`ALTER TABLE "ProjectSMTPConfig" ALTER COLUMN "username" TYPE character varying(100)`);
    }
}
//# sourceMappingURL=1779125489830-IncreaseSmtpUsernameLength.js.map