<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20230113083722 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add neighborhood gps data';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE neighborhood ADD latitude NUMERIC(20, 16) DEFAULT NULL');
$this->addSql('ALTER TABLE neighborhood ADD longitude NUMERIC(20, 16) DEFAULT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE neighborhood DROP latitude');
$this->addSql('ALTER TABLE neighborhood DROP longitude');
}
}