<?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 Version20211026074916 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 uses_questionnaire ADD questionnaire_name VARCHAR(255) DEFAULT NULL, ADD questionnaire_path VARCHAR(255) DEFAULT NULL, ADD questionnaire_mime_type VARCHAR(255) DEFAULT NULL, ADD questionnaire_size INT DEFAULT NULL, ADD questionnaire_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\'');
}
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 uses_questionnaire DROP questionnaire_name, DROP questionnaire_path, DROP questionnaire_mime_type, DROP questionnaire_size, DROP questionnaire_timestamp');
}
}