Skip to content

Commit

Permalink
Create 1723585019082-noteCreatedAtMissing.js
Browse files Browse the repository at this point in the history
note.createdAt이 psql 쿼리 중 테이블 상에 없어서 오류 발생, 조치를 위해 마이그레이션 추가
  • Loading branch information
HotoRas authored Aug 13, 2024
1 parent 39930c2 commit efd11f6
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/backend/migration/1723585019082-noteCreatedAtMissing.js
Original file line number Diff line number Diff line change
@@ -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"`);
}

}

0 comments on commit efd11f6

Please sign in to comment.