diff --git a/packages/backend/migration/1698931321665-add-comment.js b/packages/backend/migration/1698931321665-add-comment.js new file mode 100644 index 0000000000..422de166e1 --- /dev/null +++ b/packages/backend/migration/1698931321665-add-comment.js @@ -0,0 +1,16 @@ +/* + * SPDX-FileCopyrightText: syuilo and other misskey contributors + * SPDX-License-Identifier: AGPL-3.0-only + */ + +export class AddComment1698931321665 { + name = 'AddComment1698931321665' + + async up(queryRunner) { + await queryRunner.query(`COMMENT ON COLUMN "meta"."emailVerificationExpiresIn" IS 'The expiration time of email verification (unit: minute)'`); + } + + async down(queryRunner) { + await queryRunner.query(`COMMENT ON COLUMN "meta"."emailVerificationExpiresIn" IS NULL`); + } +} diff --git a/packages/backend/src/models/Meta.ts b/packages/backend/src/models/Meta.ts index 538c4f003d..91a2495af2 100644 --- a/packages/backend/src/models/Meta.ts +++ b/packages/backend/src/models/Meta.ts @@ -176,6 +176,7 @@ export class MiMeta { @Column('integer', { default: 0, + comment: 'The expiration time of email verification (unit: minute)', }) public emailVerificationExpiresIn: number;