<?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 Version20240514170453 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 hotel_facality_translation (id INT AUTO_INCREMENT NOT NULL, hotel_facality_id INT DEFAULT NULL, locale VARCHAR(255) DEFAULT NULL, input_text LONGTEXT DEFAULT NULL, input_rich_text LONGTEXT DEFAULT NULL, input_select VARCHAR(255) DEFAULT NULL, INDEX IDX_451D188FAA2A188A (hotel_facality_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE hotel_facality_translation ADD CONSTRAINT FK_451D188FAA2A188A FOREIGN KEY (hotel_facality_id) REFERENCES hotel_facality (id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE hotel_facality_translation DROP FOREIGN KEY FK_451D188FAA2A188A');
$this->addSql('DROP TABLE hotel_facality_translation');
}
}