<?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 Version20240117153002 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE v2_custom_user_percent ADD ins_model_id INT DEFAULT NULL');
$this->addSql('DROP INDEX uniq_38831d39f01a3f032832eb1c');
$this->addSql('CREATE UNIQUE INDEX UNIQ_38831D39F01A3F03604EF57A2832EB1C ON v2_custom_user_percent (ins_user_id, ins_model_id, reporting_period_id)');
$this->addSql('CREATE UNIQUE INDEX UNIQ_92543965F01A3F032832EB1C ON wages (ins_user_id, reporting_period_id)');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE v2_custom_user_percent DROP ins_model_id');
$this->addSql('DROP INDEX UNIQ_38831D39F01A3F03604EF57A2832EB1C');
$this->addSql('CREATE UNIQUE INDEX uniq_38831d39f01a3f032832eb1c ON v2_custom_user_percent (ins_user_id, reporting_period_id)');
$this->addSql('DROP INDEX UNIQ_92543965F01A3F032832EB1C');
}
}