enhance(sensitive-flag):センシティブフラグの機能の強化 (MisskeyIO#936)
This commit is contained in:
parent
7a94724098
commit
abdaa18666
18 changed files with 197 additions and 20 deletions
13
packages/backend/migration/1739335129758-sensitiveFlag.js
Normal file
13
packages/backend/migration/1739335129758-sensitiveFlag.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
export class SensitiveFlag1739335129758 {
|
||||
name = 'SensitiveFlag1739335129758'
|
||||
|
||||
async up(queryRunner) {
|
||||
await queryRunner.query(`ALTER TABLE "drive_file" ADD "isSensitiveByModerator" boolean NOT NULL DEFAULT false`);
|
||||
await queryRunner.query(`CREATE INDEX "IDX_e779d1afdfa44dc3d64213cd2e" ON "drive_file" ("isSensitiveByModerator") `);
|
||||
}
|
||||
|
||||
async down(queryRunner) {
|
||||
await queryRunner.query(`DROP INDEX "public"."IDX_e779d1afdfa44dc3d64213cd2e"`);
|
||||
await queryRunner.query(`ALTER TABLE "drive_file" DROP COLUMN "isSensitiveByModerator"`);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue