diff --git a/src/Migrations/Version20200916093101.php b/src/Migrations/Version20200916093101.php new file mode 100644 index 0000000000..eb7bb3b92a --- /dev/null +++ b/src/Migrations/Version20200916093101.php @@ -0,0 +1,32 @@ +abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); + + $this->addSql('ALTER TABLE sylius_channel_pricing CHANGE price price INT DEFAULT NULL'); + } + + public function down(Schema $schema): void + { + // this down() migration is auto-generated, please modify it to your needs + $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); + + $this->addSql('ALTER TABLE sylius_channel_pricing CHANGE price price INT NOT NULL'); + } +}