<?php
declare(strict_types=1);
namespace Boldr\Shop\ShopBundle\Migrations;
use Boldr\Cms\CmsBundle\BoldrCmsMigration;
use Doctrine\DBAL\Schema\Schema;
final class Version1_18_0 extends BoldrCmsMigration
{
public function getBundle(): string { return 'boldr/shop-bundle'; }
public function getVersion(): ?string { return '1.18.0'; }
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE TABLE shop_select_option_choice_currency (currency VARCHAR(10) NOT NULL, select_option_choice_id INT UNSIGNED NOT NULL, amount DOUBLE PRECISION NOT NULL, INDEX IDX_B889805579C5203C (select_option_choice_id), PRIMARY KEY(select_option_choice_id, currency)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE shop_select_option_choice_currency ADD CONSTRAINT FK_B889805579C5203C FOREIGN KEY (select_option_choice_id) REFERENCES shop_select_option_choice (id)');
$this->addSql('ALTER TABLE shop_select_option_choice ADD modifier_category VARCHAR(100) DEFAULT NULL');
}
}