<?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 Version20240306122717 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE v2_income DROP CONSTRAINT FK_F9AFA0DCC9E15D6A');
$this->addSql('ALTER TABLE v2_income ADD CONSTRAINT FK_F9AFA0DCC9E15D6A FOREIGN KEY (wage_id) REFERENCES v2_wage (id) ON DELETE SET NULL NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE v2_income_operator DROP CONSTRAINT FK_22665C16C9E15D6A');
$this->addSql('ALTER TABLE v2_income_operator ADD CONSTRAINT FK_22665C16C9E15D6A FOREIGN KEY (wage_id) REFERENCES v2_wage (id) ON DELETE SET NULL NOT DEFERRABLE INITIALLY IMMEDIATE');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE v2_income DROP CONSTRAINT fk_f9afa0dcc9e15d6a');
$this->addSql('ALTER TABLE v2_income ADD CONSTRAINT fk_f9afa0dcc9e15d6a FOREIGN KEY (wage_id) REFERENCES v2_wage (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('ALTER TABLE v2_income_operator DROP CONSTRAINT fk_22665c16c9e15d6a');
$this->addSql('ALTER TABLE v2_income_operator ADD CONSTRAINT fk_22665c16c9e15d6a FOREIGN KEY (wage_id) REFERENCES v2_wage (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
}
}