<?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 Version20231101073219 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE sport_event ADD type VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE sport_event ADD geo_lon VARCHAR(16) DEFAULT NULL');
$this->addSql('ALTER TABLE sport_event ADD geo_lat VARCHAR(16) DEFAULT NULL');
$this->addSql('COMMENT ON COLUMN sport_event.type IS \'Тип события\'');
$this->addSql('COMMENT ON COLUMN sport_event.geo_lon IS \'Координаты места проведения события\'');
$this->addSql('COMMENT ON COLUMN sport_event.geo_lat IS \'Координаты места проведения события\'');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE SCHEMA public');
$this->addSql('ALTER TABLE sport_event DROP type');
$this->addSql('ALTER TABLE sport_event DROP geo_lon');
$this->addSql('ALTER TABLE sport_event DROP geo_lat');
}
}