2023-04-07 01:56:46 +00:00
|
|
|
export class allowlistSecureMode1626733991004 {
|
|
|
|
name = "allowlistSecureMode1626733991004";
|
2021-07-19 22:41:23 +00:00
|
|
|
async up(queryRunner) {
|
2023-04-07 01:56:46 +00:00
|
|
|
await queryRunner.query(
|
|
|
|
`ALTER TABLE "meta" ADD "allowedHosts" character varying(256) [] default '{}'`,
|
|
|
|
);
|
|
|
|
await queryRunner.query(
|
|
|
|
`ALTER TABLE "meta" ADD "secureMode" bool default false`,
|
|
|
|
);
|
|
|
|
await queryRunner.query(
|
|
|
|
`ALTER TABLE "meta" ADD "privateMode" bool default false`,
|
|
|
|
);
|
2021-07-19 22:41:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
async down(queryRunner) {
|
|
|
|
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "allowedHosts"`);
|
|
|
|
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "secureMode"`);
|
|
|
|
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "privateMode"`);
|
|
|
|
}
|
|
|
|
}
|