diff --git a/packages/backend/migration/1723585019082-noteCreatedAtMissing.js b/packages/backend/migration/1723585019082-noteCreatedAtMissing.js new file mode 100644 index 000000000000..877f85026711 --- /dev/null +++ b/packages/backend/migration/1723585019082-noteCreatedAtMissing.js @@ -0,0 +1,16 @@ +/* + * SPDX-FileCopyrightText: syuilo and misskey-project + * SPDX-License-Identifier: AGPL-3.0-only + */ +// 1723585019082-noteCreatedAtMissing.js +export class NoteCreatedAtMissing1723585019082 { + name = 'NoteCreatedAtMissing1723585019082' + + async up(queryRunner) { + await queryRunner.query(`ALTER TABLE "note" ADD "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()`); + } + async down(queryRunner) { + await queryRunner.query(`ALTER TABLE "note" DROP COLUMN "createdAt"`); + } + +}