Add noteAutoDelete to user_profile
This commit is contained in:
parent
bd11dabf89
commit
83c971b1a8
6 changed files with 49 additions and 0 deletions
14
packages/backend/migration/1709530777533-autoDeleteNotes.js
Normal file
14
packages/backend/migration/1709530777533-autoDeleteNotes.js
Normal 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";`);
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue