Sylius/app/migrations/Version20151118223453.php
2015-11-19 19:52:41 +01:00

32 lines
997 B
PHP

<?php
namespace Sylius\Migrations;
use Doctrine\DBAL\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
/**
* @author Paweł Jędrzejewski <pawel@sylius.org>
*/
class Version20151118223453 extends AbstractMigration
{
/**
* @param Schema $schema
*/
public function up(Schema $schema)
{
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE sylius_payment_method_translation CHANGE description description LONGTEXT DEFAULT NULL');
}
/**
* @param Schema $schema
*/
public function down(Schema $schema)
{
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE sylius_payment_method_translation CHANGE description description VARCHAR(255) DEFAULT NULL COLLATE utf8_unicode_ci');
}
}