<?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 Version20200818145141 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_pages_content`
CHANGE COLUMN `scripts_head` `scripts_head` TEXT NULL DEFAULT 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 DEFAULT 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 DEFAULT 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_pages_content`
CHANGE COLUMN `scripts_head` `scripts_head` VARCHAR(255) NULL DEFAULT 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 DEFAULT 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 DEFAULT NULL COMMENT 'Scripts to add to the footer of the page' COLLATE 'utf8mb4_unicode_ci' AFTER `scripts_body`;
");
}
}