<?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 Version20241001095042 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql("UPDATE `tc_user_roles` SET `category` = 'SETTINGS' WHERE `role_key` = 'ROLE_PRODUCT_MANAGEMENT';");
$this->addSql("UPDATE `tc_user_roles` SET `category` = 'SETTINGS' WHERE `role_key` = 'ROLE_PRODUCT_VARIANT_MANAGEMENT';");
$this->addSql("UPDATE `tc_user_roles` SET `category` = 'SETTINGS' WHERE `role_key` = 'ROLE_CUSTOMER_MANAGEMENT';");
}
public function down(Schema $schema): void
{
$this->addSql("UPDATE `tc_user_roles` SET `category` = NULL WHERE `role_key` IN ('ROLE_PRODUCT_MANAGEMENT', 'ROLE_PRODUCT_VARIANT_MANAGEMENT', 'ROLE_CUSTOMER_MANAGEMENT');");
}
}