summaryrefslogtreecommitdiff
path: root/packages/backend/migration/1696388600237-revert-note-edit.js
blob: d353c851dbdc91b2167e74a81aa9468ffc68afde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * SPDX-FileCopyrightText: syuilo and misskey-project
 * SPDX-License-Identifier: AGPL-3.0-only
 */

export class RevertNoteEdit1696388600237 {
    name = 'RevertNoteEdit1696388600237'

    async up(queryRunner) {
        await queryRunner.query(`ALTER TABLE "note" DROP COLUMN "updatedAt"`);
    }

    async down(queryRunner) {
        await queryRunner.query(`ALTER TABLE "note" ADD "updatedAt" TIMESTAMP WITH TIME ZONE`);
    }
}