<?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 Version20210111185000 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_content_types`
CHANGE COLUMN `machine_name_categories` `machine_name_categories` VARCHAR(50) NULL DEFAULT NULL COMMENT 'Unique code used in the programming to identify the content ENGINE category' COLLATE 'utf8mb4_unicode_ci' AFTER `updated_date`;
");
$this->addSql("INSERT INTO `std_content_types` (`name`, `machine_name`, `created_date`, `updated_date`, `machine_name_categories`) VALUES ('System', 'system', '2021-01-11 18:48:43', '2021-01-11 18:48:44', '');");
}
public function down(Schema $schema) : void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql("DELETE from `std_content_types` where `machine_name`='system';");
$this->addSql("ALTER TABLE `std_content_types`
CHANGE COLUMN `machine_name_categories` `machine_name_categories` VARCHAR(50) NOT NULL COMMENT 'Unique code used in the programming to identify the content ENGINE category' COLLATE 'utf8mb4_unicode_ci' AFTER `updated_date`;
");
}
}