<?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 Version20201002075314 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 name SET DEFAULT \'\'');
$this->addSql('ALTER TABLE recipes ALTER short_name SET DEFAULT \'\'');
$this->addSql('ALTER TABLE recipes ALTER s SET DEFAULT \'0.17914606785875\'');
$this->addSql('ALTER TABLE recipes ALTER ts SET DEFAULT \'14.291722042686\'');
$this->addSql('ALTER TABLE recipes ALTER ta SET DEFAULT \'15.485764082247\'');
}
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 name DROP DEFAULT');
$this->addSql('ALTER TABLE recipes ALTER short_name DROP DEFAULT');
$this->addSql('ALTER TABLE recipes ALTER s SET DEFAULT \'0.17914606785875\'');
$this->addSql('ALTER TABLE recipes ALTER ts SET DEFAULT \'14.291722042686\'');
$this->addSql('ALTER TABLE recipes ALTER ta SET DEFAULT \'15.485764082247\'');
}
}