Merge pull request 'Add note auto delete feature' (#1) from wip-self-destruct into main

Reviewed-on: #1
This commit is contained in:
jaina heartles 2024-03-18 04:46:57 +00:00
commit 9120ef9e09
13 changed files with 224 additions and 0 deletions

View file

@ -0,0 +1,14 @@
export class AutoDeleteNotes1709530777533 {
name = "AutoDeleteNotes1709530777533";
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE user_profile ADD "autoDeleteNotes" boolean NOT NULL DEFAULT false;`);
await queryRunner.query(`ALTER TABLE user_profile ADD "autoDeleteNotesMinutes" integer NOT NULL DEFAULT 43200;`);
}
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE user_profile DROP COLUMN "autoDeleteNotes";`);
await queryRunner.query(`ALTER TABLE user_profile DROP COLUMN "autoDeleteNotesMinutes";`);
}
}