<?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 Version20211211123911 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE checks DROP FOREIGN KEY FK_9F8C0079BCF66DBE');
$this->addSql('DROP INDEX IDX_9F8C0079BCF66DBE ON checks');
$this->addSql('ALTER TABLE checks DROP registar_id, DROP take_down_info');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE checks ADD registar_id INT DEFAULT NULL, ADD take_down_info LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci` COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE checks ADD CONSTRAINT FK_9F8C0079BCF66DBE FOREIGN KEY (registar_id) REFERENCES registrars (id)');
$this->addSql('CREATE INDEX IDX_9F8C0079BCF66DBE ON checks (registar_id)');
}
}