migrations/Version20230905121154.php line 1

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace DoctrineMigrations;
  4. use App\Helper\EnumType\PaymentType;
  5. use Doctrine\DBAL\Schema\Schema;
  6. use Doctrine\Migrations\AbstractMigration;
  7. /**
  8.  * Auto-generated Migration: Please modify to your needs!
  9.  */
  10. final class Version20230905121154 extends AbstractMigration
  11. {
  12.     public function getDescription(): string
  13.     {
  14.         return '';
  15.     }
  16.     public function up(Schema $schema): void
  17.     {
  18.         // this up() migration is auto-generated, please modify it to your needs
  19.         $this->addSql('ALTER TABLE refill ADD date_start TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL');
  20.         $this->addSql('ALTER TABLE refill ADD date_end TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL');
  21.         $this->addSql('ALTER TABLE refill ADD description VARCHAR(2047) DEFAULT NULL');
  22.     }
  23.     public function down(Schema $schema): void
  24.     {
  25.         // this down() migration is auto-generated, please modify it to your needs
  26.         $this->addSql('ALTER TABLE refill DROP date_start');
  27.         $this->addSql('ALTER TABLE refill DROP date_end');
  28.         $this->addSql('ALTER TABLE refill DROP description');
  29.     }
  30. }