<?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 Version20240730113543 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 reservation_conversion (id INT AUTO_INCREMENT NOT NULL, reservation_id INT DEFAULT NULL, reference LONGTEXT NOT NULL, status INT NOT NULL, INDEX IDX_DD3BEEF0B83297E7 (reservation_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE reservation_conversion ADD CONSTRAINT FK_DD3BEEF0B83297E7 FOREIGN KEY (reservation_id) REFERENCES reservation (id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE reservation_conversion DROP FOREIGN KEY FK_DD3BEEF0B83297E7');
$this->addSql('DROP TABLE reservation_conversion');
}
}