<?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 Version20230306092018 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 tennis_coach_calendar DROP FOREIGN KEY FK_87EBFFD8CB944F1A');
$this->addSql('DROP INDEX IDX_87EBFFD8CB944F1A ON tennis_coach_calendar');
$this->addSql('ALTER TABLE tennis_coach_calendar DROP student_id');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE tennis_coach_calendar ADD student_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE tennis_coach_calendar ADD CONSTRAINT FK_87EBFFD8CB944F1A FOREIGN KEY (student_id) REFERENCES user (id)');
$this->addSql('CREATE INDEX IDX_87EBFFD8CB944F1A ON tennis_coach_calendar (student_id)');
}
}