migrations/Version20201126155540.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 Version20201126155540 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 form_page ADD config_sendinblue_new_contact_list_ids LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:json)\', ADD config_sendinblue_existing_contact_list_ids LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:json)\', ADD config_sendinblue_existing_contact_datable_attribute_name VARCHAR(255) DEFAULT NULL, ADD config_sendinblue_existing_contact_status_id INT DEFAULT NULL, ADD config_gtm_datalayer LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:json)\', DROP gtm_datalayer, DROP sendinblue_config_list_ids, CHANGE sendinblue_config_list_ids_update_enabled config_sendinblue_existing_contact_same_as_new TINYINT(1) DEFAULT NULL, CHANGE sendinblue_config_datable_attribute_name config_sendinblue_new_contact_datable_attribute_name VARCHAR(255) DEFAULT NULL, CHANGE sendinblue_config_status_id config_sendinblue_new_contact_status_id INT DEFAULT NULL');
  19.         $this->addSql('ALTER TABLE organization ADD config_sendinblue_api_key VARCHAR(255) DEFAULT NULL, ADD config_gtm_container_id VARCHAR(255) DEFAULT NULL, ADD config_form_page_confirm_body_end_code LONGTEXT DEFAULT NULL, ADD config_form_page_head_end_code LONGTEXT DEFAULT NULL, DROP confirm_page_body_end_code, DROP sendinblue_api_key, DROP gtm_container_id, DROP form_page_head_end_code');
  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('ALTER TABLE form_page ADD gtm_datalayer LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci` COMMENT \'(DC2Type:json)\', ADD sendinblue_config_list_ids LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci` COMMENT \'(DC2Type:json)\', ADD sendinblue_config_datable_attribute_name VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, ADD sendinblue_config_status_id INT DEFAULT NULL, DROP config_sendinblue_new_contact_list_ids, DROP config_sendinblue_new_contact_datable_attribute_name, DROP config_sendinblue_new_contact_status_id, DROP config_sendinblue_existing_contact_list_ids, DROP config_sendinblue_existing_contact_datable_attribute_name, DROP config_sendinblue_existing_contact_status_id, DROP config_gtm_datalayer, CHANGE config_sendinblue_existing_contact_same_as_new sendinblue_config_list_ids_update_enabled TINYINT(1) DEFAULT NULL');
  25.         $this->addSql('ALTER TABLE organization ADD confirm_page_body_end_code LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, ADD sendinblue_api_key VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, ADD gtm_container_id VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, ADD form_page_head_end_code LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, DROP config_sendinblue_api_key, DROP config_gtm_container_id, DROP config_form_page_confirm_body_end_code, DROP config_form_page_head_end_code');
  26.     }
  27. }