migrations/Version20220106151910.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 Version20220106151910 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 organization DROP config_cookie_bot_cbid');
  19.         $this->addSql('ALTER TABLE site 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, ADD config_natexo_webhook_key VARCHAR(155) DEFAULT NULL, ADD config_maetva_webhook_url VARCHAR(255) DEFAULT NULL, ADD config_maetva_webhook_key VARCHAR(155) DEFAULT NULL');
  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 organization ADD config_cookie_bot_cbid VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');
  25.         $this->addSql('ALTER TABLE site 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, DROP config_natexo_webhook_key, DROP config_maetva_webhook_url, DROP config_maetva_webhook_key');
  26.     }
  27. }