migrations/Version20210112155432.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 Version20210112155432 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("INSERT INTO `std_config` (`machine_name`, `created_by`, `updated_by`, `value`, `description_machine_name`, `details_machine_name`, `parent_name`, `variable_type`, `order_value`, `is_hidden`, `is_active`, `created_date`, `updated_date`, `label`, `content`, `language_code`) VALUES ('login_page', 1, 1, '', 'login_page', 'login_page', 'System', 'SELECT', 1, 0, 1, '2021-01-07 18:06:29', '2021-01-07 18:06:30', 'Login Page', '{\"query\": \"select sp.name as label,sp.id as id from std_pages sp LEFT OUTER JOIN std_content_types sct ON sp.content_type = sct.id where sct.machine_name =\'system\' order by sp.name\"}', '');
  19.                        INSERT INTO `std_config` (`machine_name`, `created_by`, `updated_by`, `value`, `description_machine_name`, `details_machine_name`, `parent_name`, `variable_type`, `order_value`, `is_hidden`, `is_active`, `created_date`, `updated_date`, `label`, `content`, `language_code`) VALUES ('new_account_page', 1, 1, '', 'new_account_page', 'new_account_page', 'System', 'SELECT', 2, 0, 1, '2021-01-11 12:24:24', '2021-01-11 12:24:25', 'New Account Page', '{\"query\": \"select sp.name as label,sp.id as id from std_pages sp LEFT OUTER JOIN std_content_types sct ON sp.content_type = sct.id where sct.machine_name =\'system\' order by sp.name\"}', '');");        
  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("DELETE from `std_config` where `machine_name`='login_page';
  25.                        DELETE from `std_config` where `machine_name`='new_account_page';");        
  26.     }
  27. }