Skip to content

Commit

Permalink
Merge pull request #19 from nekoplanet/fix-db-migraiton
Browse files Browse the repository at this point in the history
Fix db migration
  • Loading branch information
seojangho authored Aug 3, 2024
2 parents 54f26df + 0517868 commit 85f47e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/backend/migration/1720853122058-RevRevertNoteEdit.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ export class RevRevertNoteEdit1720853122058 {
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "note" ADD "updatedAt" TIMESTAMP WITH TIME ZONE`);
await queryRunner.query(`ALTER TABLE "note" ADD "updatedAtHistory" TIMESTAMP WITH TIME ZONE ARRAY`);
await queryRunner.query(`ALTER TABLE "note" ADD "updateHistory" character varying array`)
await queryRunner.query(`ALTER TABLE "note" ADD "noteEditHistory" character varying array`)
}
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "note" DROP COLUMN "updatedAt"`);
await queryRunner.query(`ALTER TABLE "note" DROP "updatedAtHistory" TIMESTAMP WITH TIME ZONE ARRAY`);
await queryRunner.query(`ALTER TABLE "note" DROP "updateHistory" character varying array`)
await queryRunner.query(`ALTER TABLE "note" DROP "noteEditHistory"`)
}

}

0 comments on commit 85f47e0

Please sign in to comment.