migrations/Version20250707071640.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 Version20250707071640 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("
  19.             INSERT IGNORE INTO `std_config` (`machine_name`, `created_by`, `updated_by`, `description_machine_name`, `details_machine_name`, `parent_name`, `variable_type`, `order_value`, `is_hidden`, `created_date`, `updated_date`, `label`, `language_code`)
  20.             VALUES
  21.                 ('logomini_break', '1', '1', 'logomini_break', 'logomini_break', 'Custom', 'BR6', '8', '0', now(), now(), '', ''),
  22.                 ('logomini_portugal', '1', '1', 'logomini_portugal', 'logomini_portugal', 'Custom', 'IMAGE', '9', '0', now(), now(), 'Logo Mini Portugal', ''),
  23.                 ('logomini_norte', '1', '1', 'logomini_norte', 'logomini_norte', 'Custom', 'IMAGE', '10', '0', now(), now(), 'Logo Mini Norte', ''),
  24.                 ('logomini_centro', '1', '1', 'logomini_centro', 'logomini_centro', 'Custom', 'IMAGE', '11', '0', now(), now(), 'Logo Mini Centro', ''),
  25.                 ('logomini_sul', '1', '1', 'logomini_sul', 'logomini_sul', 'Custom', 'IMAGE', '12', '0', now(), now(), 'Logo Mini Sul', ''),
  26.                 ('logomini_rural', '1', '1', 'logomini_rural', 'logomini_rural', 'Custom', 'IMAGE', '13', '0', now(), now(), 'Logo Mini Rural', '');
  27.         ");
  28.     }
  29.     public function down(Schema $schema): void
  30.     {
  31.         // this down() migration is auto-generated, please modify it to your needs
  32.         $this->addSql("DELETE FROM `std_config` WHERE `machine_name` IN ('logomini_break', 'logomini_portugal', 'logomini_norte', 'logomini_centro', 'logomini_sul', 'logomini_rural');");
  33.     }
  34. }