<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20210112155432 extends AbstractMigration
{
public function getDescription() : string
{
return '';
}
public function up(Schema $schema) : void
{
// this up() migration is auto-generated, please modify it to your needs
$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\"}', '');
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\"}', '');");
}
public function down(Schema $schema) : void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql("DELETE from `std_config` where `machine_name`='login_page';
DELETE from `std_config` where `machine_name`='new_account_page';");
}
}