Skip to content

Commit

Permalink
🐛 remove hasChartTab and type from full configs (#4224)
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiamersmann authored Nov 27, 2024
1 parent e872992 commit 5324762
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions db/migration/1732698153785-RemoveHasChartTabFromFullConfigs.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { MigrationInterface, QueryRunner } from "typeorm"

export class RemoveHasChartTabFromFullConfigs1732698153785
implements MigrationInterface
{
public async up(queryRunner: QueryRunner): Promise<void> {
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<void> {}
}

0 comments on commit 5324762

Please sign in to comment.