<?php

namespace OpenConext\EngineBlock\Doctrine\Migrations;

use Doctrine\DBAL\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;

/**
 * Auto-generated Migration: Please modify to your needs!
 */
class Version20180220080549 extends AbstractMigration
{
    /**
     * @param Schema $schema
     */
    public function up(Schema $schema)
    {
        // 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\'.');

        // Remove old liquibase tables: see f673f8a
        $this->addSql('DROP TABLE IF EXISTS DATABASECHANGELOG');
        $this->addSql('DROP TABLE IF EXISTS DATABASECHANGELOGLOCK');
    }

    /**
     * @param Schema $schema
     */
    public function down(Schema $schema)
    {
        // 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\'.');
    }
}

Drop old LiquiBase migration tables
Drop old LiquiBase migration tables

LiquiBase was removed in f673f8a, but on some environments the tables
were never removed. This migration removes the tables if they exist.
