migrations/Version20230602141132.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 Version20230602141132 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 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`, `content`, `language_code`)
  20.             VALUES                
  21.                 ('logout_no_btn_style', '1', '1', 'logout_no_btn_style', 'logout_no_btn_style', 'Private area', 'SELECT', '11', '0', now(), now(), 'Logout No Btn Style','{\"query\": \"SELECT \'Primary\' AS label,\'btn-primary\' AS `id` UNION SELECT \'Secondary\' AS label,\'btn-secondary\' AS `id` UNION SELECT \'Style 1\' AS label,\'btn-primary btn-style-1\' AS `id` UNION SELECT \'Style 2\' AS label,\'btn-primary btn-style-2\' AS `id` UNION SELECT \'Style 3\' AS label,\'btn-primary btn-style-3\' AS `id` UNION SELECT \'Style 4\' AS label,\'btn-primary btn-style-4\' AS `id` UNION SELECT \'Style 5\' AS label,\'btn-primary btn-style-5\' AS `id`\"}',''),                
  22.                 ('logout_yes_btn_style', '1', '1', 'logout_yes_btn_style', 'logout_yes_btn_style', 'Private area', 'SELECT', '11', '0', now(), now(), 'Logout Yes Btn Style','{\"query\": \"SELECT \'Primary\' AS label,\'btn-primary\' AS `id` UNION SELECT \'Secondary\' AS label,\'btn-secondary\' AS `id` UNION SELECT \'Style 1\' AS label,\'btn-primary btn-style-1\' AS `id` UNION SELECT \'Style 2\' AS label,\'btn-primary btn-style-2\' AS `id` UNION SELECT \'Style 3\' AS label,\'btn-primary btn-style-3\' AS `id` UNION SELECT \'Style 4\' AS label,\'btn-primary btn-style-4\' AS `id` UNION SELECT \'Style 5\' AS label,\'btn-primary btn-style-5\' AS `id`\"}','');                
  23.                             
  24.         ");
  25.     }
  26.     public function down(Schema $schema): void
  27.     {
  28.         // this down() migration is auto-generated, please modify it to your needs
  29.         $this->addSql("DELETE FROM `std_config` WHERE `machine_name` IN ('logout_no_btn_style', 'logout_yes_btn_style');");
  30.     }
  31. }