mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 20:07:33 -07:00
Add migration for allowedHosts, secureMode, privateMode
This commit is contained in:
parent
71d4e577dd
commit
d68b0fa12c
1 changed files with 17 additions and 0 deletions
|
@ -0,0 +1,17 @@
|
||||||
|
|
||||||
|
|
||||||
|
export class allowlistSecureMode1626733991004 {
|
||||||
|
name = 'allowlistSecureMode1626733991004';
|
||||||
|
async up(queryRunner) {
|
||||||
|
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`);
|
||||||
|
}
|
||||||
|
|
||||||
|
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"`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue