LaLiga-BackEnd/migrations/Version20240210231643.php

34 lines
970 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 Version20240210231643 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 RENAME INDEX idx_user_id TO IDX_561F4297A76ED395');
$this->addSql('ALTER TABLE season ADD updated_at DATETIME DEFAULT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE custom_role RENAME INDEX idx_561f4297a76ed395 TO IDX_USER_ID');
$this->addSql('ALTER TABLE season DROP updated_at');
}
}