<?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 Version20210210095632 extends AbstractMigration
{
public function getDescription() : string
{
return '';
}
public function up(Schema $schema) : void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql("UPDATE std_web_roles set name='ROLE_USER' where name='DEFAULT' and is_default=1;");
$this->addSql("UPDATE std_web_users set roles=replace(roles,'\"DEFAULT\"','\"ROLE_USER\"');");
}
public function down(Schema $schema) : void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql("UPDATE std_web_users set roles=replace(roles,'\"ROLE_USER\"','\"DEFAULT\"');");
$this->addSql("UPDATE std_web_roles set name='DEFAULT' where name='ROLE_USER' and is_default=1;");
}
}