* Auto-generated Migration: Please modify to your needs!
10
*/
11
class Version20170301135010 extends AbstractMigration
12
{
13
/**
14
* @param Schema $schema
15
*/
16
public function up(Schema $schema)
17
{
18
// this up() migration is auto-generated, please modify it to your needs
19
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
20
21
$this->addSql('CREATE TABLE sylius_product_image_product_variants (image_id INT NOT NULL, variant_id INT NOT NULL, INDEX IDX_8FFDAE8D3DA5256D (image_id), INDEX IDX_8FFDAE8D3B69A9AF (variant_id), PRIMARY KEY(image_id, variant_id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB');