migrations/Version20221112090246.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 Version20221112090246 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('ALTER TABLE cal_booking_room ADD lease_guarantor_status VARCHAR(50) DEFAULT NULL');
  19.         $this->addSql('ALTER TABLE cal_contact_message ADD civility VARCHAR(10) DEFAULT NULL, ADD first_contact_date DATETIME DEFAULT NULL, ADD answer_type VARCHAR(50) DEFAULT NULL, ADD work_status VARCHAR(50) DEFAULT NULL, ADD contacted_from VARCHAR(50) DEFAULT NULL, ADD visited TINYINT(1) DEFAULT NULL, ADD booked TINYINT(1) DEFAULT NULL, ADD lease_start_date DATETIME DEFAULT NULL, ADD answer LONGTEXT DEFAULT NULL, ADD answer_date DATETIME DEFAULT NULL');
  20.         $this->addSql('ALTER TABLE cal_inventory ADD x14 TINYINT(1) DEFAULT NULL');
  21.         $this->addSql('ALTER TABLE cal_maintenance_quotation ADD x14 TINYINT(1) DEFAULT NULL');
  22.         $this->addSql('ALTER TABLE cal_user ADD notification_groups JSON NOT NULL');
  23.     }
  24.     public function down(Schema $schema): void
  25.     {
  26.         // this down() migration is auto-generated, please modify it to your needs
  27.         $this->addSql('ALTER TABLE cal_booking_room DROP lease_guarantor_status');
  28.         $this->addSql('ALTER TABLE cal_contact_message DROP civility, DROP first_contact_date, DROP answer_type, DROP work_status, DROP contacted_from, DROP visited, DROP booked, DROP lease_start_date, DROP answer, DROP answer_date');
  29.         $this->addSql('ALTER TABLE cal_inventory DROP x14');
  30.         $this->addSql('ALTER TABLE cal_maintenance_quotation DROP x14');
  31.         $this->addSql('ALTER TABLE cal_user DROP notification_groups');
  32.     }
  33. }