<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20200326102719 extends AbstractMigration
{
public function getDescription() : string
{
return '';
}
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 recipes ALTER fcc28 DROP NOT NULL');
$this->addSql('ALTER TABLE recipes ALTER dte0 DROP NOT NULL');
$this->addSql('ALTER TABLE recipes ALTER beta_add DROP NOT NULL');
$this->addSql('ALTER TABLE recipes ALTER theta DROP NOT NULL');
$this->addSql('ALTER TABLE recipes ALTER kappa DROP NOT NULL');
$this->addSql('ALTER TABLE recipes ALTER s DROP NOT NULL');
$this->addSql('ALTER TABLE recipes ALTER ts DROP NOT NULL');
$this->addSql('ALTER TABLE recipes ALTER ta DROP NOT NULL');
$this->addSql('ALTER TABLE recipes ALTER na DROP NOT NULL');
$this->addSql('ALTER TABLE recipes ALTER fa DROP NOT NULL');
}
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 recipes ALTER fcc28 SET NOT NULL');
$this->addSql('ALTER TABLE recipes ALTER dte0 SET NOT NULL');
$this->addSql('ALTER TABLE recipes ALTER beta_add SET NOT NULL');
$this->addSql('ALTER TABLE recipes ALTER theta SET NOT NULL');
$this->addSql('ALTER TABLE recipes ALTER kappa SET NOT NULL');
$this->addSql('ALTER TABLE recipes ALTER s SET NOT NULL');
$this->addSql('ALTER TABLE recipes ALTER ts SET NOT NULL');
$this->addSql('ALTER TABLE recipes ALTER ta SET NOT NULL');
$this->addSql('ALTER TABLE recipes ALTER na SET NOT NULL');
$this->addSql('ALTER TABLE recipes ALTER fa SET NOT NULL');
}
}