<?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 Version20221029171128 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 tbl_operation_paie ADD type_operation_id INT NOT NULL');
$this->addSql('ALTER TABLE tbl_operation_paie ADD CONSTRAINT FK_32328DD2C3EF8F86 FOREIGN KEY (type_operation_id) REFERENCES ref_type_operation_paie (id)');
$this->addSql('CREATE INDEX IDX_32328DD2C3EF8F86 ON tbl_operation_paie (type_operation_id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE tbl_operation_paie DROP FOREIGN KEY FK_32328DD2C3EF8F86');
$this->addSql('DROP INDEX IDX_32328DD2C3EF8F86 ON tbl_operation_paie');
$this->addSql('ALTER TABLE tbl_operation_paie DROP type_operation_id');
}
}