From 7ee301c3eed4ded295490a6614650a3720317772 Mon Sep 17 00:00:00 2001 From: yukineko <27853966+hideki0403@users.noreply.github.com> Date: Thu, 2 Nov 2023 22:23:00 +0900 Subject: [PATCH] =?UTF-8?q?add:=20=E3=82=B3=E3=83=A1=E3=83=B3=E3=83=88?= =?UTF-8?q?=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../migration/1698931321665-add-comment.js | 16 ++++++++++++++++ packages/backend/src/models/Meta.ts | 1 + 2 files changed, 17 insertions(+) create mode 100644 packages/backend/migration/1698931321665-add-comment.js 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;