migrations/Version20260405061816.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 Version20260405061816 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->addSql('DROP TABLE notification_time');
  19.         $this->addSql('ALTER TABLE notification_system DROP ahead_of_deadline, DROP near_deadline, DROP at_deadline, DROP delay_of_deadline, DROP significant_delay');
  20.     }
  21.     public function down(Schema $schema): void
  22.     {
  23.         // this down() migration is auto-generated, please modify it to your needs
  24.         $this->addSql('CREATE TABLE notification_time (id INT AUTO_INCREMENT NOT NULL, ahead_of_deadline INT DEFAULT NULL, near_deadline INT DEFAULT NULL, at_deadline INT DEFAULT NULL, delay_of_deadline INT DEFAULT NULL, significant_delay INT DEFAULT NULL, deleted_at DATETIME DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  25.         $this->addSql('ALTER TABLE notification_system ADD ahead_of_deadline TINYINT(1) DEFAULT NULL, ADD near_deadline TINYINT(1) DEFAULT NULL, ADD at_deadline TINYINT(1) DEFAULT NULL, ADD delay_of_deadline TINYINT(1) DEFAULT NULL, ADD significant_delay TINYINT(1) DEFAULT NULL');
  26.     }
  27. }