migrations/Version20200326102719.php line 1

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace DoctrineMigrations;
  4. use Doctrine\DBAL\Schema\Schema;
  5. use Doctrine\Migrations\AbstractMigration;
  6. /**
  7.  * Auto-generated Migration: Please modify to your needs!
  8.  */
  9. final class Version20200326102719 extends AbstractMigration
  10. {
  11.     public function getDescription() : string
  12.     {
  13.         return '';
  14.     }
  15.     public function up(Schema $schema) : void
  16.     {
  17.         // this up() migration is auto-generated, please modify it to your needs
  18.         $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'postgresql''Migration can only be executed safely on \'postgresql\'.');
  19.         $this->addSql('ALTER TABLE recipes ALTER fcc28 DROP NOT NULL');
  20.         $this->addSql('ALTER TABLE recipes ALTER dte0 DROP NOT NULL');
  21.         $this->addSql('ALTER TABLE recipes ALTER beta_add DROP NOT NULL');
  22.         $this->addSql('ALTER TABLE recipes ALTER theta DROP NOT NULL');
  23.         $this->addSql('ALTER TABLE recipes ALTER kappa DROP NOT NULL');
  24.         $this->addSql('ALTER TABLE recipes ALTER s DROP NOT NULL');
  25.         $this->addSql('ALTER TABLE recipes ALTER ts DROP NOT NULL');
  26.         $this->addSql('ALTER TABLE recipes ALTER ta DROP NOT NULL');
  27.         $this->addSql('ALTER TABLE recipes ALTER na DROP NOT NULL');
  28.         $this->addSql('ALTER TABLE recipes ALTER fa DROP NOT NULL');
  29.     }
  30.     public function down(Schema $schema) : void
  31.     {
  32.         // this down() migration is auto-generated, please modify it to your needs
  33.         $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'postgresql''Migration can only be executed safely on \'postgresql\'.');
  34.         $this->addSql('CREATE SCHEMA public');
  35.         $this->addSql('ALTER TABLE recipes ALTER fcc28 SET NOT NULL');
  36.         $this->addSql('ALTER TABLE recipes ALTER dte0 SET NOT NULL');
  37.         $this->addSql('ALTER TABLE recipes ALTER beta_add SET NOT NULL');
  38.         $this->addSql('ALTER TABLE recipes ALTER theta SET NOT NULL');
  39.         $this->addSql('ALTER TABLE recipes ALTER kappa SET NOT NULL');
  40.         $this->addSql('ALTER TABLE recipes ALTER s SET NOT NULL');
  41.         $this->addSql('ALTER TABLE recipes ALTER ts SET NOT NULL');
  42.         $this->addSql('ALTER TABLE recipes ALTER ta SET NOT NULL');
  43.         $this->addSql('ALTER TABLE recipes ALTER na SET NOT NULL');
  44.         $this->addSql('ALTER TABLE recipes ALTER fa SET NOT NULL');
  45.     }
  46. }