summary refs log tree commit diff
path: root/src/util/migration/postgres/1765665440000-DropDefaultIPDataKey.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/migration/postgres/1765665440000-DropDefaultIPDataKey.ts')
-rw-r--r--src/util/migration/postgres/1765665440000-DropDefaultIPDataKey.ts22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/util/migration/postgres/1765665440000-DropDefaultIPDataKey.ts b/src/util/migration/postgres/1765665440000-DropDefaultIPDataKey.ts

index ea887b1b..2e58ff7d 100644 --- a/src/util/migration/postgres/1765665440000-DropDefaultIPDataKey.ts +++ b/src/util/migration/postgres/1765665440000-DropDefaultIPDataKey.ts
@@ -1,17 +1,17 @@ import { MigrationInterface, QueryRunner } from "typeorm"; export class DropDefaultIPDataKey1765665440000 implements MigrationInterface { - name = "DropDefaultIPDataKey1765665440000"; + name = "DropDefaultIPDataKey1765665440000"; - public async up(queryRunner: QueryRunner): Promise<void> { - await queryRunner.query( - `UPDATE "config" SET "value" = NULL WHERE "key" = 'security_ipdataApiKey' AND "value" = '"eca677b284b3bac29eb72f5e496aa9047f26543605efe99ff2ce35c9"'`, - ); - } + public async up(queryRunner: QueryRunner): Promise<void> { + await queryRunner.query( + `UPDATE "config" SET "value" = NULL WHERE "key" = 'security_ipdataApiKey' AND "value" = '"eca677b284b3bac29eb72f5e496aa9047f26543605efe99ff2ce35c9"'`, + ); + } - public async down(queryRunner: QueryRunner): Promise<void> { - await queryRunner.query( - `UPDATE "config" SET "value" = '"eca677b284b3bac29eb72f5e496aa9047f26543605efe99ff2ce35c9"' WHERE "key" = 'security_ipdataApiKey' AND "value" IS NULL`, - ); - } + public async down(queryRunner: QueryRunner): Promise<void> { + await queryRunner.query( + `UPDATE "config" SET "value" = '"eca677b284b3bac29eb72f5e496aa9047f26543605efe99ff2ce35c9"' WHERE "key" = 'security_ipdataApiKey' AND "value" IS NULL`, + ); + } }