<?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 Version20210111183931 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("ALTER TABLE `std_config`
CHANGE COLUMN `value` `value` TEXT NULL COMMENT 'Value of the config variable' COLLATE 'utf8mb4_unicode_ci' AFTER `updated_by`;");
$this->addSql("ALTER TABLE `std_pages_content`
CHANGE COLUMN `meta_description` `meta_description` VARCHAR(4000) NULL DEFAULT NULL COMMENT 'Meta description of the page' COLLATE 'utf8mb4_unicode_ci' AFTER `meta_keywords`,
CHANGE COLUMN `og_description` `og_description` VARCHAR(4000) NULL DEFAULT NULL COLLATE 'utf8mb4_unicode_ci' AFTER `og_image`,
CHANGE COLUMN `scripts_head` `scripts_head` TEXT NULL COMMENT 'Scripts to add to the head of the page' COLLATE 'utf8mb4_unicode_ci' AFTER `og_url`,
CHANGE COLUMN `scripts_body` `scripts_body` TEXT NULL COMMENT 'Scripts to add to the body of the page' COLLATE 'utf8mb4_unicode_ci' AFTER `scripts_head`,
CHANGE COLUMN `scripts_footer` `scripts_footer` TEXT NULL COMMENT 'Scripts to add to the footer of the page' COLLATE 'utf8mb4_unicode_ci' AFTER `scripts_body`;
");
}
public function down(Schema $schema) : void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql("ALTER TABLE `std_config`
CHANGE COLUMN `value` `value` VARCHAR(500) NULL COMMENT 'Value of the config variable' COLLATE 'utf8mb4_unicode_ci' AFTER `updated_by`;");
$this->addSql("ALTER TABLE `std_pages_content`
CHANGE COLUMN `meta_description` `meta_description` VARCHAR(255) NULL DEFAULT NULL COMMENT 'Meta description of the page' COLLATE 'utf8mb4_unicode_ci' AFTER `meta_keywords`,
CHANGE COLUMN `og_description` `og_description` VARCHAR(300) NULL DEFAULT NULL COLLATE 'utf8mb4_unicode_ci' AFTER `og_image`,
CHANGE COLUMN `scripts_head` `scripts_head` VARCHAR(255) NULL COMMENT 'Scripts to add to the head of the page' COLLATE 'utf8mb4_unicode_ci' AFTER `og_url`,
CHANGE COLUMN `scripts_body` `scripts_body` VARCHAR(255) NULL COMMENT 'Scripts to add to the body of the page' COLLATE 'utf8mb4_unicode_ci' AFTER `scripts_head`,
CHANGE COLUMN `scripts_footer` `scripts_footer` VARCHAR(255) NULL COMMENT 'Scripts to add to the footer of the page' COLLATE 'utf8mb4_unicode_ci' AFTER `scripts_body`;
");
}
}