diff --git a/packages/backend/migration/1654589815249-increase-smtp-char-limit.js b/packages/backend/migration/1654589815249-increase-smtp-char-limit.js index 3d6872ca33..0140dd7988 100644 --- a/packages/backend/migration/1654589815249-increase-smtp-char-limit.js +++ b/packages/backend/migration/1654589815249-increase-smtp-char-limit.js @@ -8,8 +8,10 @@ export class increaseSmtpCharLimit1654589815249 { } async down(queryRunner) { - await queryRunner.query(`ALTER TABLE "meta" ALTER COLUMN "smtpHost" TYPE character varying(128)`); - await queryRunner.query(`ALTER TABLE "meta" ALTER COLUMN "smtpUser" TYPE character varying(128)`); - await queryRunner.query(`ALTER TABLE "meta" ALTER COLUMN "smtpPass" TYPE character varying(128)`); + // It's safe to keep extended character limit, rather than shrinking with risk of breaking settings + + // await queryRunner.query(`ALTER TABLE "meta" ALTER COLUMN "smtpHost" TYPE character varying(128)`); + // await queryRunner.query(`ALTER TABLE "meta" ALTER COLUMN "smtpUser" TYPE character varying(128)`); + // await queryRunner.query(`ALTER TABLE "meta" ALTER COLUMN "smtpPass" TYPE character varying(128)`); } }