mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-21 21:47:17 +00:00
16 lines
511 B
TypeScript
16 lines
511 B
TypeScript
|
|
import { MigrationInterface, QueryRunner } from 'typeorm';
|
||
|
|
import { TJDefaultTheme } from '@modules/organization-themes/constants';
|
||
|
|
|
||
|
|
export class AddMissingSurfaceThemeToDefault1752307477010 implements MigrationInterface {
|
||
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
||
|
|
await queryRunner.query(
|
||
|
|
`
|
||
|
|
UPDATE organization_themes set definition=$1 where name='ToolJet'
|
||
|
|
`,
|
||
|
|
[TJDefaultTheme]
|
||
|
|
);
|
||
|
|
}
|
||
|
|
|
||
|
|
public async down(queryRunner: QueryRunner): Promise<void> {}
|
||
|
|
}
|