migrations/Version20210419115610.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 Version20210419115610 extends AbstractMigration
  10. {
  11.     public function getDescription() : string
  12.     {
  13.         return '';
  14.     }
  15.     public function up(Schema $schema) : void
  16.     {
  17.         $this->addSql("INSERT INTO `std_blocks_settings` (`machine_name`, `block_id`, `created_by`, `updated_by`, `name`, `setting_type`, `created_date`, `updated_date`, `order_value`) VALUES ('separator', '28', '1', '1', '', 'SEPARATOR', now(), now(), '3');");
  18.         $this->addSql("INSERT INTO `std_blocks_settings` (`machine_name`, `block_id`, `created_by`, `updated_by`, `name`, `setting_type`, `created_date`, `updated_date`, `order_value`) VALUES ('extra_class', '28', '1', '1', 'Extra Class', 'INPUT', now(), now(), '4');");
  19.     }
  20.     public function down(Schema $schema) : void
  21.     {
  22.         $this->addSql("delete from `std_blocks_settings` where `machine_name`='separator' and `block_id`=28;");
  23.         $this->addSql("delete from `std_blocks_settings` where `machine_name`='extra_class' and `block_id`=28;");
  24.     }
  25. }