<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20230121110331 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add new fields to geolocation';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE geolocation ADD country_name VARCHAR(255) DEFAULT NULL, ADD address LONGTEXT DEFAULT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE geolocation DROP country_name, DROP address');
}
public function isTransactional(): bool
{
return false;
}
}