<?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 Version20260203175346 extends AbstractMigration
{
public function getDescription(): string
{
return 'table for bus stops dictionary';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE TABLE dict_bus_stop (id UUID NOT NULL, external_id VARCHAR(50) NOT NULL, road_id VARCHAR(50) DEFAULT NULL, road_no VARCHAR(50) NOT NULL, road_name VARCHAR(255) DEFAULT NULL, road_side VARCHAR(10) DEFAULT NULL, from_mileage INT DEFAULT NULL, stop_number VARCHAR(50) DEFAULT NULL, stop_name VARCHAR(255) DEFAULT NULL, is_active BOOLEAN DEFAULT true NOT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE UNIQUE INDEX UNIQ_6CC34D3A9F75D7B0 ON dict_bus_stop (external_id)');
$this->addSql('COMMENT ON COLUMN dict_bus_stop.id IS \'(DC2Type:uuid)\'');
}
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('DROP TABLE dict_bus_stop');
}
}