<?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 Version20200710104624 extends AbstractMigration
{
public function up(Schema $schema): void
{
$this->abortIf('mysql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE legal_entity_active_definition ADD uses_advised_against TINYINT(1) DEFAULT NULL');
$this->addSql('ALTER TABLE system_settings ADD uses_advised_against_name VARCHAR(255) DEFAULT NULL, ADD uses_advised_against_path VARCHAR(255) DEFAULT NULL, ADD uses_advised_against_mime_type VARCHAR(255) DEFAULT NULL, ADD uses_advised_against_size INT DEFAULT NULL, ADD uses_advised_against_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\'');
}
public function down(Schema $schema): void
{
$this->abortIf('mysql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE legal_entity_active_definition DROP uses_advised_against');
$this->addSql('ALTER TABLE system_settings DROP uses_advised_against_name, DROP uses_advised_against_path, DROP uses_advised_against_mime_type, DROP uses_advised_against_size, DROP uses_advised_against_timestamp');
}
}