<?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 Version20230829102448 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 child ADD birth_name VARCHAR(255) NOT NULL, ADD first_name VARCHAR(255) NOT NULL, DROP birthName, DROP firstName, CHANGE birthDate birth_date DATETIME DEFAULT NULL, CHANGE birthCity birth_city VARCHAR(255) DEFAULT NULL, CHANGE birthZipCode birth_zip_code INT DEFAULT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE child ADD birthName VARCHAR(255) NOT NULL, ADD firstName VARCHAR(255) NOT NULL, DROP birth_name, DROP first_name, CHANGE birth_date birthDate DATETIME DEFAULT NULL, CHANGE birth_city birthCity VARCHAR(255) DEFAULT NULL, CHANGE birth_zip_code birthZipCode INT DEFAULT NULL');
}
}