<?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 Version20210718113807 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 cal_accommodation_furniture_import_error ADD replace_by_id INT DEFAULT NULL, ADD to_remove TINYINT(1) NOT NULL');
$this->addSql('ALTER TABLE cal_accommodation_furniture_import_error ADD CONSTRAINT FK_2040E280D3B1E9E FOREIGN KEY (replace_by_id) REFERENCES cal_furniture (id)');
$this->addSql('CREATE INDEX IDX_2040E280D3B1E9E ON cal_accommodation_furniture_import_error (replace_by_id)');
}
public function down(Schema $schema) : void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE cal_accommodation_furniture_import_error DROP FOREIGN KEY FK_2040E280D3B1E9E');
$this->addSql('DROP INDEX IDX_2040E280D3B1E9E ON cal_accommodation_furniture_import_error');
$this->addSql('ALTER TABLE cal_accommodation_furniture_import_error DROP replace_by_id, DROP to_remove');
}
}