<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20190510120228 extends AbstractMigration
{
public function getDescription() : string
{
return '';
}
public function up(Schema $schema) : void
{
// this up() 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 std_blocks_components CHANGE component_type component_type VARCHAR(20) NOT NULL COMMENT \'Type of the component (INPUT, IMAGE, TEXTAREA, DATE, COLORPICKER, GALLERY, CHECKBOX, FILE, HOTSPOT, COMBO, COMBO_PAGES, COMBO_CONTENT_TYPE, COMBO_CATEGORY, COMBO_CONTENT_SKIN, COMBO_TEMPLATE)\'');
}
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 std_blocks_components CHANGE component_type component_type VARCHAR(20) NOT NULL COLLATE utf8mb4_unicode_ci COMMENT \'Type of the component (INPUT, IMAGE, TEXTAREA, DATE, COLORPICKER, GALLERY, CHECKBOX, ...)\'');
}
}