upd: store old date and use it in previous versions

This commit is contained in:
Mar0xy 2023-10-22 14:07:04 +02:00
parent 2706b6b618
commit 83be996a3d
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
6 changed files with 27 additions and 6 deletions

View file

@ -0,0 +1,11 @@
export class OldDateNoteEdit1697970083001 {
name = "OldDateNoteEdit1697970083001";
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "note_edit" ADD COLUMN "oldDate" TIMESTAMP WITH TIME ZONE`);
}
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "note_edit" DROP COLUMN "oldDate"`);
}
}