<?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 Version20230712105603 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('ALTER TABLE permission_role ADD id INT AUTO_INCREMENT NOT NULL, CHANGE permission_id permission_id INT DEFAULT NULL, CHANGE role_id role_id INT DEFAULT NULL, ADD PRIMARY KEY (id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
// $this->addSql('ALTER TABLE permission_role MODIFY id INT NOT NULL');
// $this->addSql('DROP INDEX `PRIMARY` ON permission_role');
// $this->addSql('ALTER TABLE permission_role DROP id, CHANGE permission_id permission_id INT NOT NULL, CHANGE role_id role_id INT NOT NULL');
// $this->addSql('ALTER TABLE permission_role ADD PRIMARY KEY (permission_id, role_id)');
}
}