<?php
declare(strict_types=1);
namespace Boldr\Cms\OpeningHoursBundle\Migrations;
use Doctrine\DBAL\Schema\Schema;
use Boldr\Cms\CmsBundle\BoldrCmsMigration;
class Version2_4_0 extends BoldrCmsMigration
{
public function getBundle(): string { return 'boldr/opening-hours-bundle'; }
public function getVersion(): ?string { return '2.4.0'; }
public function up(Schema $schema): void
{
$this->addSql("CREATE TABLE opening_hours_set_translation (id INT UNSIGNED AUTO_INCREMENT NOT NULL, set_id INT UNSIGNED NOT NULL, locale VARCHAR(10) NOT NULL, caption VARCHAR(200) NOT NULL, INDEX IDX_6B658A3C10FB0D18 (set_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB");
$this->addSql("ALTER TABLE opening_hours_set_translation ADD CONSTRAINT FK_6B658A3C10FB0D18 FOREIGN KEY (set_id) REFERENCES opening_hours_set (id)");
}
}