<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
use Symfony\Component\DependencyInjection\ContainerAwareTrait;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20221122083637 extends AbstractMigration
{
use ContainerAwareTrait;
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE city ADD latitude VARCHAR(16) NOT NULL DEFAULT \'55.796790\'');
$this->addSql('ALTER TABLE city ADD longitude VARCHAR(16) NOT NULL DEFAULT \'49.097709\'');
$this->addSql('ALTER TABLE city ALTER COLUMN latitude DROP DEFAULT');
$this->addSql('ALTER TABLE city ALTER COLUMN longitude DROP DEFAULT');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE city DROP latitude');
$this->addSql('ALTER TABLE city DROP longitude');
}
}