<?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 Version20220616212424 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 name LONGTEXT DEFAULT NULL, ADD nro_doc VARCHAR(15) DEFAULT NULL, ADD phone VARCHAR(15) DEFAULT NULL, ADD type VARCHAR(100) DEFAULT NULL, CHANGE roles roles LONGTEXT NOT NULL COMMENT \'(DC2Type:json)\'');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE user DROP name, DROP nro_doc, DROP phone, DROP type, CHANGE roles roles LONGTEXT NOT NULL COLLATE `utf8mb4_bin`');
}
}