<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use App\Entity\Security\RoleInterface;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20260115120628 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add ROLE_DEVELOPER to the role table';
}
public function up(Schema $schema): void
{
$this->addSql(sprintf(
"INSERT INTO role (name, role, importance, enabled) VALUES ('Développeur', '%s', 5, 1)",
RoleInterface::ROLE_DEVELOPER
));
}
public function down(Schema $schema): void
{
$this->addSql(sprintf(
"DELETE FROM role WHERE role = '%s'",
RoleInterface::ROLE_DEVELOPER
));
}
}