<?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 Version20240108075225 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE user ADD zipcode VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE `user` CHANGE `timezone` `timezone` VARCHAR(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL;');
$this->addSql('ALTER TABLE `user` CHANGE `parent_id` `parent_id` INT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE user DROP zipcode');
}
}