<?php
declare(strict_types=1);
namespace Application\Migrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20210525084715 extends AbstractMigration
{
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->abortIf('mysql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE legal_entity_transfer ADD member TINYINT(1) DEFAULT NULL');
$this->addSql('ALTER TABLE legal_entity_staff_request DROP FOREIGN KEY FK_A6596A497705316B');
$this->addSql('DROP INDEX IDX_A6596A492989F1FD ON legal_entity_staff_request');
$this->addSql('ALTER TABLE legal_entity_staff_request ADD member TINYINT(1) DEFAULT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->abortIf('mysql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE legal_entity_staff_request DROP member');
$this->addSql('CREATE INDEX IDX_A6596A492989F1FD ON legal_entity_staff_request (new_entity_invoice_id)');
$this->addSql('ALTER TABLE legal_entity_transfer DROP member');
}
}