api/src/Migrations/Version20190612122513.php
<?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 Version20190612122513 extends AbstractMigration
{
public function up(Schema $schema) : void
{
// this up() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE mass_person ADD bbox_min_lon NUMERIC(10, 6) DEFAULT NULL, ADD bbox_min_lat NUMERIC(10, 6) DEFAULT NULL, ADD bbox_max_lon NUMERIC(10, 6) DEFAULT NULL, ADD bbox_max_lat NUMERIC(10, 6) DEFAULT NULL');
}
public function down(Schema $schema) : void
{
// this down() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE mass_person DROP bbox_min_lon, DROP bbox_min_lat, DROP bbox_max_lon, DROP bbox_max_lat');
}
}