<?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 Version20250731084119 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE std_geo_map MODIFY geo_shape geometry NOT NULL');
$this->addSql('CREATE SPATIAL INDEX idx_std_geo_map_geo_shape ON std_geo_map (geo_shape)');
}
public function down(Schema $schema): void
{
$this->addSql('DROP INDEX idx_std_geo_map_geo_shape ON std_geo_map');
$this->addSql('ALTER TABLE std_geo_map MODIFY geo_shape geometry NULL');
}
}