feat: sensitive word
This commit is contained in:
parent
b18df999cd
commit
7f16b50e73
10 changed files with 122 additions and 1 deletions
11
packages/backend/migration/1678694614599-sensitive-words.js
Normal file
11
packages/backend/migration/1678694614599-sensitive-words.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
export class sensitiveWords1678694614599 {
|
||||
name = 'sensitiveWords1678694614599'
|
||||
|
||||
async up(queryRunner) {
|
||||
await queryRunner.query(`ALTER TABLE "meta" ADD "sensitiveWords" character varying(1024) array NOT NULL DEFAULT '{}'`);
|
||||
}
|
||||
|
||||
async down(queryRunner) {
|
||||
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "sensitiveWords"`);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue