migrations/Version20210712121804.php line 1
<?php
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
class Version20210712121804 extends AbstractMigration
{
/**
* @param Schema $schema
*/
public function up(Schema $schema) : void
{
// this up() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'postgresql', 'Migration can only be executed safely on \'postgresql\'.');
$this->addSql('ALTER TABLE node ADD additional_description TEXT DEFAULT NULL');
$this->addSql('COMMENT ON COLUMN node.additional_description IS \'Additonal description\'');
$this->addSql('ALTER TABLE scenario ADD additional_description TEXT DEFAULT NULL');
$this->addSql('COMMENT ON COLUMN scenario.additional_description IS \'Additonal description\'');
}
/**
* @param Schema $schema
*/
public function down(Schema $schema) : void
{
// this down() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'postgresql', 'Migration can only be executed safely on \'postgresql\'.');
$this->addSql('CREATE SCHEMA public');
$this->addSql('ALTER TABLE scenario DROP additional_description');
$this->addSql('DROP INDEX UNIQ_4A5DB3CE16C6B94');
}
}