mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-21 21:47:17 +00:00
18 lines
546 B
TypeScript
18 lines
546 B
TypeScript
import { MigrationInterface, QueryRunner, TableColumn } from 'typeorm';
|
|
|
|
export class AddPageSettingsColumnToAppVersionTable1716890766240 implements MigrationInterface {
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.addColumn(
|
|
'app_versions',
|
|
new TableColumn({
|
|
name: 'page_settings',
|
|
type: 'json',
|
|
isNullable: true,
|
|
})
|
|
);
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.dropColumn('app_versions', 'page_settings');
|
|
}
|
|
}
|