migrations/Version20240820201137.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 Version20240820201137 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 info ADD whatsapp_button VARCHAR(155) DEFAULT NULL COMMENT \'Texto de botón\', ADD whatsapp_message VARCHAR(255) DEFAULT NULL COMMENT \'Mensaje de whatsapp\', ADD whatsapp_consultants_show TINYINT(1) DEFAULT 0 NOT NULL COMMENT \'Mostrar whatsapp? 1:Sí, 0:No\', ADD whatsapp_title VARCHAR(255) DEFAULT NULL COMMENT \'Whatsapp Título\', ADD whatsapp_text VARCHAR(255) DEFAULT NULL COMMENT \'Whatsapp texto\', ADD whatsapp_help VARCHAR(255) DEFAULT NULL COMMENT \'Whatsapp texto de ayuda\', ADD whatsapp_consultants_items LONGTEXT NOT NULL COMMENT \'Asesores(DC2Type:array)\'');
  19.         $this->addSql('UPDATE info SET whatsapp_consultants_items = \'a:0:{}\'');
  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 info DROP whatsapp_button, DROP whatsapp_message, DROP whatsapp_consultants_show, DROP whatsapp_title, DROP whatsapp_text, DROP whatsapp_help, DROP whatsapp_consultants_items');
  25.     }
  26. }