<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20211119131113 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add Distance to Search Match';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE search_match ADD distance DOUBLE PRECISION NOT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE search_match DROP distance');
}
public function isTransactional(): bool
{
return false;
}
}