mizzkey/packages/backend/migration/1696604429200-revert-revert-note-editting.js

17 lines
468 B
JavaScript
Raw Normal View History

2023-10-07 00:57:23 +02:00
/*
* SPDX-FileCopyrightText: syuilo and other misskey contributors
* SPDX-License-Identifier: AGPL-3.0-only
*/
export class revertrevertnoteeditting1696604429200 {
name = 'revertrevertnoteeditting1696604429200'
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"`);
}
}