<?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 Version20200424110652 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_pages` (`id`, `template_id`, `created_by`, `updated_by`, `title`, `content_type`, `is_active`, `created_date`, `updated_date`, `order_value`, `publish_date`, `expire_date`) VALUES(1, NULL, 1, 1, 'Home', 6, 1, '2020-04-21 15:52:05', '2020-04-23 14:33:55', NULL, '2020-04-21 15:51:00', NULL);");
$this->addSql("INSERT INTO `std_friendly_url` (`page_id`, `url`, `relation_tree`, `relation_id`, `language_code`, `is_canonical`) VALUES(1, '/pt/home', '[]', NULL, 'pt', 1);");
$this->addSql('INSERT INTO `std_pages_content` (`page_id`, `language_code`, `created_by`, `updated_by`, `is_active`, `created_date`, `updated_date`, `title`, `url`, `canonical_url`, `meta_title`, `meta_keywords`, `meta_description`, `og_title`, `og_image`, `og_description`, `og_url`, `scripts_head`, `scripts_body`, `scripts_footer`, `content`) VALUES (1, \'pt\', 1, 1, 1, \'2020-04-21 15:52:05\', \'2020-04-23 14:33:55\', \'Home\', \'Home\', NULL, \'\', \'\', \'\', \'\', \'\', \'\', \'\', \'\', \'\', \'\', \'[]\');');
}
public function down(Schema $schema) : void
{
$this->addSql("DELETE FROM `std_friendly_url` WHERE `page_id`=1");
$this->addSql("DELETE FROM `std_pages_content` WHERE `page_id`=1");
$this->addSql("DELETE FROM `std_pages` WHERE `id`=1");
}
}