fix: default sensitive not letting users unmark files
This commit is contained in:
parent
ba17776b19
commit
65ac5fef46
8 changed files with 35 additions and 5 deletions
16
packages/backend/migration/1729414690009-defaultSensitive.js
Normal file
16
packages/backend/migration/1729414690009-defaultSensitive.js
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: marie and sharkey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
export class DefaultSensitive1729414690009 {
|
||||
name = 'DefaultSensitive1729414690009'
|
||||
|
||||
async up(queryRunner) {
|
||||
await queryRunner.query(`ALTER TABLE "user_profile" ADD "defaultSensitive" boolean NOT NULL DEFAULT false`);
|
||||
}
|
||||
|
||||
async down(queryRunner) {
|
||||
await queryRunner.query(`ALTER TABLE "user_profile" DROP COLUMN "defaultSensitive"`);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue