vendor/boldr/shop-bundle/migrations/Version1_18_0.php line 1

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace Boldr\Shop\ShopBundle\Migrations;
  4. use Boldr\Cms\CmsBundle\BoldrCmsMigration;
  5. use Doctrine\DBAL\Schema\Schema;
  6. final class Version1_18_0 extends BoldrCmsMigration
  7. {
  8.     public function getBundle(): string { return 'boldr/shop-bundle'; }
  9.     public function getVersion(): ?string { return '1.18.0'; }
  10.     public function up(Schema $schema): void
  11.     {
  12.         // this up() migration is auto-generated, please modify it to your needs
  13.         $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');
  14.         $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)');
  15.         $this->addSql('ALTER TABLE shop_select_option_choice ADD modifier_category VARCHAR(100) DEFAULT NULL');
  16.     }
  17. }