mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-26 07:57:17 +00:00
19 lines
524 B
TypeScript
19 lines
524 B
TypeScript
|
|
import { MigrationInterface, QueryRunner, TableColumn } from 'typeorm';
|
||
|
|
|
||
|
|
export class AddIsMaintenanceOnToApp1649860649643 implements MigrationInterface {
|
||
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
||
|
|
await queryRunner.addColumn(
|
||
|
|
'apps',
|
||
|
|
new TableColumn({
|
||
|
|
name: 'is_maintenance_on',
|
||
|
|
type: 'boolean',
|
||
|
|
default: false,
|
||
|
|
})
|
||
|
|
);
|
||
|
|
}
|
||
|
|
|
||
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
||
|
|
await queryRunner.dropColumn('apps', 'is_maintenance_on');
|
||
|
|
}
|
||
|
|
}
|