migrations/Version20220412154632.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 Version20220412154632 extends AbstractMigration {
  10.     public function getDescription(): string {
  11.         return '';
  12.     }
  13.     public function up(Schema $schema): void {
  14.         // this up() migration is auto-generated, please modify it to your needs
  15.         $this->addSql('ALTER TABLE product ADD recurring_price DOUBLE PRECISION DEFAULT NULL, ADD needs_confirmation TINYINT(1) NOT NULL');
  16.     }
  17.     public function down(Schema $schema): void {
  18.         // this down() migration is auto-generated, please modify it to your needs
  19.         $this->addSql('ALTER TABLE product DROP recurring_price, DROP needs_confirmation');
  20.     }
  21. }