<?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 Version20210601095607 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_staff_request ADD progress_steps LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:array)\', ADD progress_waiting VARCHAR(255) DEFAULT NULL, ADD progress_completed TINYINT(1) DEFAULT NULL, ADD progress_status VARCHAR(255) DEFAULT NULL, ADD progress_status_text VARCHAR(255) DEFAULT NULL, ADD progress_percentage VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE legal_entity_transfer ADD progress_steps LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:array)\', ADD progress_waiting VARCHAR(255) DEFAULT NULL, ADD progress_completed TINYINT(1) DEFAULT NULL, ADD progress_status VARCHAR(255) DEFAULT NULL, ADD progress_status_text VARCHAR(255) DEFAULT NULL, ADD progress_percentage VARCHAR(255) 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 progress_steps, DROP progress_waiting, DROP progress_completed, DROP progress_status, DROP progress_status_text, DROP progress_percentage');
$this->addSql('ALTER TABLE legal_entity_transfer DROP progress_steps, DROP progress_waiting, DROP progress_completed, DROP progress_status, DROP progress_status_text, DROP progress_percentage');
}
}