<?php
namespace DoctrineMigrations;
use Doctrine\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
/**
* Auto-generated Migration: Please modify to your needs!
*/
class Version20180501052446 extends AbstractMigration
{
/**
* @param Schema $schema
*/
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('DROP TABLE rubrik');
}
/**
* @param Schema $schema
*/
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('CREATE TABLE rubrik (id CHAR(36) NOT NULL COLLATE utf8_unicode_ci COMMENT \'(DC2Type:entityId)\', bezeichnung VARCHAR(64) DEFAULT NULL COLLATE utf8_unicode_ci, url_slug VARCHAR(255) DEFAULT NULL COLLATE utf8_unicode_ci, is_system_relevant TINYINT(1) NOT NULL, code VARCHAR(16) DEFAULT NULL COLLATE utf8_unicode_ci, UNIQUE INDEX UNIQ_6E1F895E86C952DA (url_slug), UNIQUE INDEX UNIQ_6E1F895E77153098 (code), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB');
}
}