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 {} +}