mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-21 21:47:17 +00:00
* - Added new field under app view permission - Added new column to appGroupPermission * added queries for hiding app from dashboard * changed a column name
19 lines
601 B
TypeScript
19 lines
601 B
TypeScript
import { MigrationInterface, QueryRunner, TableColumn } from 'typeorm';
|
|
|
|
export class AddReadOnDashboardToAppGroupPermissions1661448846469 implements MigrationInterface {
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.addColumn(
|
|
'app_group_permissions',
|
|
new TableColumn({
|
|
name: 'read_on_dashboard',
|
|
type: 'boolean',
|
|
default: false,
|
|
isNullable: false,
|
|
})
|
|
);
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.dropColumn('app_group_permissions', 'read_on_dashboard');
|
|
}
|
|
}
|