mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 08:58:26 +00:00
* Added worklfow permsiions * Fixed bugs in workflow permission * fix bugs in server for worklfow permsiion * fix bugs for workflow permissions * reverted not required files * reverted package lock json * revert back .gitmodules url * revered package lock * plugins import fix * fix * Update groups test cases --------- Co-authored-by: Adish M <adish.madhu@gmail.com> Co-authored-by: Muhsin Shah C P <muhsinshah21@gmail.com> Co-authored-by: gsmithun4 <gsmithun4@gmail.com> Co-authored-by: ajith-k-v <ajith.jaban@gmail.com>
19 lines
686 B
TypeScript
19 lines
686 B
TypeScript
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
|
|
export class AddWorkflowPermissionsInGroupPermissions1746705301652 implements MigrationInterface {
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`
|
|
ALTER TABLE permission_groups
|
|
ADD COLUMN workflow_create BOOLEAN NOT NULL DEFAULT FALSE,
|
|
ADD COLUMN workflow_delete BOOLEAN NOT NULL DEFAULT FALSE;
|
|
`);
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`
|
|
ALTER TABLE permission_groups
|
|
DROP COLUMN workflow_delete,
|
|
DROP COLUMN workflow_create;
|
|
`);
|
|
}
|
|
}
|