<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20201126155540 extends AbstractMigration
{
public function getDescription() : string
{
return '';
}
public function up(Schema $schema) : void
{
// this up() migration is auto-generated, please modify it to your needs
$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');
$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');
}
public function down(Schema $schema) : void
{
// this down() migration is auto-generated, please modify it to your needs
$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');
$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');
}
}