<?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 Version20220303080249 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 user ADD username VARCHAR(255) NOT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE reset_password_request CHANGE selector selector VARCHAR(20) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE hashed_token hashed_token VARCHAR(100) NOT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE user DROP username, CHANGE name name VARCHAR(64) CHARACTER SET latin2 NOT NULL COLLATE `latin2_general_ci`, CHANGE surname surname VARCHAR(64) CHARACTER SET latin2 NOT NULL COLLATE `latin2_general_ci`, CHANGE email email VARCHAR(255) CHARACTER SET latin2 NOT NULL COLLATE `latin2_general_ci`, CHANGE token token VARCHAR(255) CHARACTER SET latin2 DEFAULT NULL COLLATE `latin2_general_ci`, CHANGE password password VARCHAR(255) CHARACTER SET latin2 NOT NULL COLLATE `latin2_general_ci`');
}
}