From 332a3f2737a44d31d8bd3eeafef9d1d08248f11e Mon Sep 17 00:00:00 2001 From: mattyatea Date: Fri, 16 Feb 2024 19:46:53 +0900 Subject: [PATCH] a --- .../backend/migration/1707888646527-proxycheckio.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 packages/backend/migration/1707888646527-proxycheckio.js diff --git a/packages/backend/migration/1707888646527-proxycheckio.js b/packages/backend/migration/1707888646527-proxycheckio.js new file mode 100644 index 0000000000..62ecc0ddc7 --- /dev/null +++ b/packages/backend/migration/1707888646527-proxycheckio.js @@ -0,0 +1,13 @@ +export class Proxycheckio1707888646527 { + name = 'Proxycheckio1707888646527' + + async up(queryRunner) { + await queryRunner.query(`ALTER TABLE "meta" ADD "enableProxyCheckio" boolean NOT NULL DEFAULT false`); + await queryRunner.query(`ALTER TABLE "meta" ADD "proxyCheckioApiKey" character varying(32)`); + } + + async down(queryRunner) { + await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "proxyCheckioApiKey"`); + await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "enableProxyCheckio"`); + } +}