<?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 Version20220510152131 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 invoice DROP INDEX UNIQ_9065174499C772A6, ADD INDEX IDX_9065174499C772A6 (visa_id)');
$this->addSql('DROP INDEX UNIQ_B81291B96901F54 ON lot');
$this->addSql('ALTER TABLE lot ADD ces SMALLINT DEFAULT NULL, ADD sdp SMALLINT DEFAULT NULL, ADD si SMALLINT DEFAULT NULL');
$this->addSql('ALTER TABLE visa DROP INDEX IDX_16B1AB0862A10F76, ADD UNIQUE INDEX UNIQ_16B1AB0862A10F76 (instruction_id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE invoice DROP INDEX IDX_9065174499C772A6, ADD UNIQUE INDEX UNIQ_9065174499C772A6 (visa_id)');
$this->addSql('ALTER TABLE lot DROP ces, DROP sdp, DROP si');
$this->addSql('CREATE UNIQUE INDEX UNIQ_B81291B96901F54 ON lot (number)');
$this->addSql('ALTER TABLE visa DROP INDEX UNIQ_16B1AB0862A10F76, ADD INDEX IDX_16B1AB0862A10F76 (instruction_id)');
}
}