migrations/Version20230126053340.php line 1
<?phpdeclare(strict_types=1);namespace DoctrineMigrations;use Doctrine\DBAL\Schema\Schema;use Doctrine\Migrations\AbstractMigration;/*** Auto-generated Migration: Please modify to your needs!*/final class Version20230126053340 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('CREATE TABLE tennis_coach_set_up (id INT AUTO_INCREMENT NOT NULL, tennis_club_id INT NOT NULL, time_start INT NOT NULL, time_end INT NOT NULL, day_of_week VARCHAR(255) DEFAULT NULL, start_date DATE NOT NULL, end_date DATE NOT NULL, INDEX IDX_A309370C66CACA70 (tennis_club_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');$this->addSql('ALTER TABLE tennis_coach_set_up ADD CONSTRAINT FK_A309370C66CACA70 FOREIGN KEY (tennis_club_id) REFERENCES tennis_venues (id)');}public function down(Schema $schema): void{// this down() migration is auto-generated, please modify it to your needs$this->addSql('DROP TABLE tennis_coach_set_up');}}