<?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 Version20240903135626 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE reservation_tour_flight ADD reservation_tour_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE reservation_tour_flight ADD CONSTRAINT FK_3BB5DCB8727836C6 FOREIGN KEY (reservation_tour_id) REFERENCES reservation_tour (id)');
$this->addSql('CREATE INDEX IDX_3BB5DCB8727836C6 ON reservation_tour_flight (reservation_tour_id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE reservation_tour_flight DROP FOREIGN KEY FK_3BB5DCB8727836C6');
$this->addSql('DROP INDEX IDX_3BB5DCB8727836C6 ON reservation_tour_flight');
$this->addSql('ALTER TABLE reservation_tour_flight DROP reservation_tour_id');
}
}