<?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 Version20220121085025 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 authtype ADD filter VARCHAR(128) DEFAULT NULL');
//$this->addSql('ALTER TABLE email_texts CHANGE locale locale VARCHAR(4) NOT NULL, CHANGE locale_name locale_name VARCHAR(256) NOT NULL');
//$this->addSql('ALTER TABLE user CHANGE authtype_id authtype_id INT DEFAULT 1');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE authtype DROP filter');
//$this->addSql('ALTER TABLE email_texts CHANGE locale locale VARCHAR(4) CHARACTER SET utf8mb4 DEFAULT \'cz\' NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE locale_name locale_name VARCHAR(256) CHARACTER SET utf8mb4 DEFAULT \'Čeština\' NOT NULL COLLATE `utf8mb4_unicode_ci`');
//$this->addSql('ALTER TABLE user CHANGE authtype_id authtype_id INT DEFAULT 1');
}
}