<?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 Version20240911121749 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql('DROP INDEX uniq_49bc9556f01a3f032832eb1c');
$this->addSql('CREATE UNIQUE INDEX UNIQ_49BC9556F01A3F032832EB1C6F7B263A ON v2_wage (ins_user_id, reporting_period_id, wage_type)');
$this->addSql('DROP INDEX uniq_8a64f85c9e15d6a604ef57a');
$this->addSql('ALTER TABLE v2_wage_parts ADD ref_type VARCHAR(20) DEFAULT NULL');
$this->addSql('CREATE UNIQUE INDEX UNIQ_8A64F85C9E15D6A1B9BC8DA9BAD16AE ON v2_wage_parts (wage_id, ins_source_id, ref_type)');
}
public function down(Schema $schema): void
{
$this->addSql('DROP INDEX UNIQ_8A64F85C9E15D6A1B9BC8DA9BAD16AE');
$this->addSql('ALTER TABLE v2_wage_parts DROP ref_type');
$this->addSql('CREATE UNIQUE INDEX uniq_8a64f85c9e15d6a604ef57a ON v2_wage_parts (wage_id, ins_source_id)');
$this->addSql('DROP INDEX UNIQ_49BC9556F01A3F032832EB1C6F7B263A');
$this->addSql('CREATE UNIQUE INDEX uniq_49bc9556f01a3f032832eb1c ON v2_wage (ins_user_id, reporting_period_id)');
}
}