0
0
switched/packages/backend/migration/1724072711475-NoteEdit.js
2024-08-20 21:12:49 +09:00

17 lines
409 B
JavaScript

/*
* SPDX-FileCopyrightText: syuilo and other misskey contributors
* SPDX-License-Identifier: AGPL-3.0-only
*/
export class NoteEdit1724072711475 {
name = 'NoteEdit1724072711475'
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "note" ADD "updatedAt" TIMESTAMP WITH TIME ZONE`);
}
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "note" DROP COLUMN "updatedAt"`);
}
}