-
-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🚧 (for testing) fix Multiembedder on staging
- Loading branch information
1 parent
b6dc1fc
commit aec5791
Showing
2 changed files
with
52 additions
and
33 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
db/migration/1733163041212-EnableSlopeTabForAllLineCharts.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { MigrationInterface, QueryRunner } from "typeorm" | ||
|
||
export class EnableSlopeTabForAllLineCharts1733163041212 | ||
implements MigrationInterface | ||
{ | ||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(` | ||
update chart_configs cc | ||
join charts c on cc.id = c.configId | ||
set | ||
patch = JSON_SET(cc.patch, '$.chartTypes', JSON_ARRAY('LineChart', 'SlopeChart')), | ||
full = JSON_SET(cc.full, '$.chartTypes', JSON_ARRAY('LineChart', 'SlopeChart')) | ||
where cc.chartType = 'LineChart' | ||
`) | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<void> {} | ||
Check warning on line 17 in db/migration/1733163041212-EnableSlopeTabForAllLineCharts.ts GitHub Actions / eslint
Check warning on line 17 in db/migration/1733163041212-EnableSlopeTabForAllLineCharts.ts GitHub Actions / eslint
Check warning on line 17 in db/migration/1733163041212-EnableSlopeTabForAllLineCharts.ts GitHub Actions / eslint
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters