<?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 Version20221107155823 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 lnk_personnel_type_paiement DROP FOREIGN KEY FK_2F0452981C109075');
$this->addSql('ALTER TABLE lnk_personnel_type_paiement DROP FOREIGN KEY FK_2F045298615593E9');
$this->addSql('DROP TABLE lnk_personnel_type_paiement');
//$this->addSql('ALTER TABLE tbl_operation_travail DROP FOREIGN KEY FK_8D4934E4615593E9');
$this->addSql('DROP TABLE ref_type_paiement');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE lnk_personnel_type_paiement ADD CONSTRAINT FK_2F0452981C109075 FOREIGN KEY (personnel_id) REFERENCES tbl_personnel (id)');
$this->addSql('ALTER TABLE lnk_personnel_type_paiement ADD CONSTRAINT FK_2F045298615593E9 FOREIGN KEY (type_paiement_id) REFERENCES ref_type_paiement (id)');
}
}