<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20240930110052 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql("UPDATE `tc_user_roles` SET `is_readonly` = '1' WHERE `tc_user_roles`.`role_key` = 'ROLE_ACTIVITY_LOG';");
$this->addSql("UPDATE `tc_user_roles` SET `is_readonly` = '1' WHERE `tc_user_roles`.`role_key` = 'ROLE_MASTER_PRODUCTION_SCHEDLE_REPORT';");
$this->addSql("UPDATE `tc_user_roles` SET `is_readonly` = '1' WHERE `tc_user_roles`.`role_key` = 'ROLE_RUNNING_ORDER';");
$this->addSql("UPDATE `tc_user_roles` SET `is_readonly` = '1' WHERE `tc_user_roles`.`role_key` = 'ROLE_IMPORT_HISTORY';");
$this->addSql("UPDATE `tc_user_roles` SET `is_readonly` = '1' WHERE `tc_user_roles`.`role_key` = 'ROLE_WORKORDER_DETAILS';");
$this->addSql("UPDATE `tc_user_roles` SET `is_readonly` = '1' WHERE `tc_user_roles`.`role_key` = 'ROLE_SMT_STOCK_MANAGEMENT';");
$this->addSql("UPDATE `tc_user_roles` SET `is_readonly` = '1' WHERE `tc_user_roles`.`role_key` = 'ROLE_ASSY_STOCK_MANAGEMENT';");
}
public function down(Schema $schema): void
{
$this->addSql("UPDATE `tc_user_roles` SET `is_readonly` = '0' WHERE `role_key` = 'ROLE_ACTIVITY_LOG';");
$this->addSql("UPDATE `tc_user_roles` SET `is_readonly` = '0' WHERE `role_key` = 'ROLE_MASTER_PRODUCTION_SCHEDLE_REPORT';");
$this->addSql("UPDATE `tc_user_roles` SET `is_readonly` = '0' WHERE `role_key` = 'ROLE_RUNNING_ORDER';");
$this->addSql("UPDATE `tc_user_roles` SET `is_readonly` = '0' WHERE `role_key` = 'ROLE_IMPORT_HISTORY';");
$this->addSql("UPDATE `tc_user_roles` SET `is_readonly` = '0' WHERE `role_key` = 'ROLE_WORKORDER_DETAILS';");
$this->addSql("UPDATE `tc_user_roles` SET `is_readonly` = '0' WHERE `role_key` = 'ROLE_SMT_STOCK_MANAGEMENT';");
$this->addSql("UPDATE `tc_user_roles` SET `is_readonly` = '0' WHERE `role_key` = 'ROLE_ASSY_STOCK_MANAGEMENT';");
}
}