Allowlist implementation
This commit is contained in:
parent
d1e8653449
commit
9dcc7645ea
22 changed files with 158 additions and 5 deletions
17
packages/backend/migration/1635065559969-allowlist.js
Normal file
17
packages/backend/migration/1635065559969-allowlist.js
Normal file
|
@ -0,0 +1,17 @@
|
|||
|
||||
export class allowlist1635065559969 {
|
||||
constructor() {
|
||||
this.name = 'allowlist1635065559969';
|
||||
}
|
||||
|
||||
async up(queryRunner) {
|
||||
await queryRunner.query(`ALTER TABLE "meta" ADD "allowedHosts" character varying(256) array NOT NULL DEFAULT '{}'::varchar[]`);
|
||||
await queryRunner.query(`ALTER TABLE "meta" ADD "allowlistMode" boolean NOT NULL DEFAULT false`);
|
||||
}
|
||||
|
||||
async down(queryRunner) {
|
||||
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "allowedHosts"`);
|
||||
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "allowlistMode"`);
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue