<?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 Version20190430101446 extends AbstractMigration
{
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 document CHANGE size `size` INT DEFAULT NULL');
$this->addSql('ALTER TABLE document CHANGE ticket `ticket` VARCHAR(100) DEFAULT NULL');
$this->addSql('ALTER TABLE gym_exercise CHANGE thumbnail_name `thumbnail_name` VARCHAR(255) DEFAULT NULL, CHANGE equipment `equipment` VARCHAR(50) 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 document CHANGE size `size` INT NOT NULL');
$this->addSql('ALTER TABLE document CHANGE ticket `ticket` VARCHAR(100) NOT NULL');
$this->addSql('ALTER TABLE gym_exercise CHANGE `thumbnail_name` thumbnail_name VARCHAR(45) DEFAULT NULL COLLATE utf8mb4_unicode_ci, CHANGE `equipment` equipment VARCHAR(1000) DEFAULT NULL COLLATE utf8mb4_unicode_ci');
$this->addSql('ALTER TABLE membership_manager CHANGE `type_manager` type_manager VARCHAR(255) NOT NULL COLLATE latin1_swedish_ci');
}
}