migrations/Version20251121102458.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 Version20251121102458 extends AbstractMigration
  10. {
  11.     public function getDescription(): string
  12.     {
  13.         return '';
  14.     }
  15.     public function up(Schema $schema): void
  16.     {
  17.         $this->addSql("
  18.             UPDATE std_ads_zones 
  19.             SET description = 'Aparece a cada dois parágrafos, tanto em desktop como em mobile com formato 300x250, nas notícias e reportagens.',
  20.                 updated_at = NOW()
  21.             WHERE machine_name = 'mrec';
  22.         ");
  23.     }
  24.     public function down(Schema $schema): void
  25.     {
  26.         // Reverting description update is not practical without storing the old value
  27.         $this->addSql("
  28.             UPDATE std_ads_zones 
  29.             SET description = NULL,
  30.                 updated_at = NOW()
  31.             WHERE machine_name = 'mrec';
  32.         ");
  33.     }
  34. }