<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20211125131858 extends AbstractMigration
{
public function getDescription(): string
{
return 'SearchOwner clean';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE search_owner DROP address, DROP longitude, DROP latitude');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE search_owner ADD address VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, ADD longitude DOUBLE PRECISION NOT NULL, ADD latitude DOUBLE PRECISION NOT NULL');
}
public function isTransactional(): bool
{
return false;
}
}