import {MigrationInterface, QueryRunner} from "typeorm";

export class roleFixedEditTemplatePerm1558927248976 implements MigrationInterface {

    public async up(queryRunner: QueryRunner): Promise<any> {
        await queryRunner.query(`ALTER TABLE "role" RENAME COLUMN "canViewTemplate" TO "canEditTemplate"`);
    }

    public async down(queryRunner: QueryRunner): Promise<any> {
        await queryRunner.query(`ALTER TABLE "role" RENAME COLUMN "canEditTemplate" TO "canViewTemplate"`);
    }

}
