<?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 Version20230809132334 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 oscpv_contracts DROP INDEX IDX_71C9DCCBF1F5286B, ADD UNIQUE INDEX UNIQ_71C9DCCBF1F5286B (main_contract_id)');
$this->addSql('ALTER TABLE oscpv_contracts ADD aiwa_id VARCHAR(50) DEFAULT NULL, ADD aiwa_number VARCHAR(50) DEFAULT NULL, ADD mtsbu_link VARCHAR(250) DEFAULT NULL, ADD aiwa_date DATETIME DEFAULT NULL COMMENT \'(DC2Type:datetime_immutable)\'');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE `oscpv_contracts` DROP INDEX UNIQ_71C9DCCBF1F5286B, ADD INDEX IDX_71C9DCCBF1F5286B (main_contract_id)');
$this->addSql('ALTER TABLE `oscpv_contracts` DROP aiwa_id, DROP aiwa_number, DROP mtsbu_link, DROP aiwa_date');
}
}