2023-08-01 17:38:53 +09:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: syuilo and other misskey, cherrypick contributors
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
2022-06-07 18:06:50 +09:00
|
|
|
export class increaseSmtpCharLimit1654589815249 {
|
|
|
|
name = 'increaseSmtpCharLimit1654589815249'
|
|
|
|
|
|
|
|
async up(queryRunner) {
|
|
|
|
await queryRunner.query(`ALTER TABLE "meta" ALTER COLUMN "smtpHost" TYPE character varying(256)`);
|
|
|
|
await queryRunner.query(`ALTER TABLE "meta" ALTER COLUMN "smtpUser" TYPE character varying(256)`);
|
|
|
|
await queryRunner.query(`ALTER TABLE "meta" ALTER COLUMN "smtpPass" TYPE character varying(256)`);
|
|
|
|
}
|
|
|
|
|
|
|
|
async down(queryRunner) {
|
2022-06-08 09:12:22 +09:00
|
|
|
// It's safe to keep extended character limit, rather than shrinking with risk of breaking settings
|
2023-08-01 17:38:53 +09:00
|
|
|
|
2022-06-08 09:12:22 +09:00
|
|
|
// 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)`);
|
2022-06-07 18:06:50 +09:00
|
|
|
}
|
|
|
|
}
|