migrations/Version20230204102017.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 Version20230204102017 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.    
  19.         $this->addSql('ALTER TABLE credits_acknowledgment_request CHANGE is_notification_sent is_notification_sent TINYINT(1) DEFAULT false NOT NULL');
  20.         $this->addSql('ALTER TABLE equipment_issue CHANGE is_notification_sent is_notification_sent TINYINT(1) DEFAULT false NOT NULL');
  21.        
  22.         $this->addSql('ALTER TABLE new_student_enrollment CHANGE is_notification_sent is_notification_sent TINYINT(1) DEFAULT false NOT NULL');
  23.         $this->addSql('ALTER TABLE payroll CHANGE is_notification_sent is_notification_sent TINYINT(1) DEFAULT false NOT NULL');
  24.         $this->addSql('ALTER TABLE tic_issue CHANGE is_notification_sent is_notification_sent TINYINT(1) DEFAULT false NOT NULL');
  25.     }
  26.     public function down(Schema $schema): void
  27.     {
  28.         // this down() migration is auto-generated, please modify it to your needs
  29.       
  30.         $this->addSql('ALTER TABLE credits_acknowledgment_request CHANGE is_notification_sent is_notification_sent TINYINT(1) NOT NULL');
  31.         $this->addSql('ALTER TABLE equipment_issue CHANGE is_notification_sent is_notification_sent TINYINT(1) NOT NULL');
  32.    
  33.         $this->addSql('ALTER TABLE new_student_enrollment CHANGE is_notification_sent is_notification_sent TINYINT(1) DEFAULT 0 NOT NULL');
  34.         $this->addSql('ALTER TABLE payroll CHANGE is_notification_sent is_notification_sent TINYINT(1) DEFAULT NULL');
  35.         $this->addSql('ALTER TABLE tic_issue CHANGE is_notification_sent is_notification_sent TINYINT(1) NOT NULL');
  36.     }
  37. }