migrations/Version20190430101446.php line 1

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace DoctrineMigrations;
  3. use Doctrine\DBAL\Schema\Schema;
  4. use Doctrine\Migrations\AbstractMigration;
  5. /**
  6.  * Auto-generated Migration: Please modify to your needs!
  7.  */
  8. final class Version20190430101446 extends AbstractMigration
  9. {
  10.     public function up(Schema $schema) : void
  11.     {
  12.         // this up() migration is auto-generated, please modify it to your needs
  13.         $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql''Migration can only be executed safely on \'mysql\'.');
  14.         $this->addSql('ALTER TABLE document CHANGE size `size` INT DEFAULT NULL');
  15.         $this->addSql('ALTER TABLE document CHANGE ticket `ticket` VARCHAR(100) DEFAULT NULL');
  16.         $this->addSql('ALTER TABLE gym_exercise CHANGE thumbnail_name `thumbnail_name` VARCHAR(255) DEFAULT NULL, CHANGE equipment `equipment` VARCHAR(50) DEFAULT NULL');
  17.     }
  18.     public function down(Schema $schema) : void
  19.     {
  20.         // this down() migration is auto-generated, please modify it to your needs
  21.         $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql''Migration can only be executed safely on \'mysql\'.');
  22.         $this->addSql('ALTER TABLE document CHANGE size `size` INT NOT NULL');
  23.         $this->addSql('ALTER TABLE document CHANGE ticket `ticket` VARCHAR(100) NOT NULL');
  24.         $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');
  25.         $this->addSql('ALTER TABLE membership_manager CHANGE `type_manager` type_manager VARCHAR(255) NOT NULL COLLATE latin1_swedish_ci');
  26.     }
  27. }