From 6b54483c929a7cf6de12b36af0986dd684c54607 Mon Sep 17 00:00:00 2001 From: sophiamersmann Date: Wed, 27 Nov 2024 10:04:06 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20remove=20hasChartTab=20and=20typ?= =?UTF-8?q?e=20from=20full=20configs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...698153785-RemoveHasChartTabFromFullConfigs.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 db/migration/1732698153785-RemoveHasChartTabFromFullConfigs.ts diff --git a/db/migration/1732698153785-RemoveHasChartTabFromFullConfigs.ts b/db/migration/1732698153785-RemoveHasChartTabFromFullConfigs.ts new file mode 100644 index 00000000000..3f7b2a24e37 --- /dev/null +++ b/db/migration/1732698153785-RemoveHasChartTabFromFullConfigs.ts @@ -0,0 +1,16 @@ +import { MigrationInterface, QueryRunner } from "typeorm" + +export class RemoveHasChartTabFromFullConfigs1732698153785 + implements MigrationInterface +{ + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query(` + -- sql + UPDATE chart_configs + SET full = JSON_REMOVE(full, '$.type', '$.hasChartTab') + `) + } + + // eslint-disable-next-line @typescript-eslint/no-empty-function + public async down(): Promise {} +}