LaLiga-BackEnd/migrations/Version20240526094546.php

34 lines
971 B
PHP

<?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 Version20240526094546 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 custom_role ADD entity_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE team RENAME INDEX idx_home_facility TO IDX_C4E0A61F1ACD745D');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE custom_role DROP entity_id');
$this->addSql('ALTER TABLE team RENAME INDEX idx_c4e0a61f1acd745d TO IDX_HOME_FACILITY');
}
}