<?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 Version20200809232749 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->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE vehicle RENAME INDEX idx_bb385e50fe6e88d7 TO IDX_1B80E486FE6E88D7');
$this->addSql('ALTER TABLE vehicle RENAME INDEX idx_bb385e509df55184 TO IDX_1B80E4869DF55184');
$this->addSql('ALTER TABLE vehicle_work_schedule ADD start_location POINT NOT NULL COMMENT \'(DC2Type:point)\', ADD end_location POINT NOT NULL COMMENT \'(DC2Type:point)\'');
}
public function down(Schema $schema) : void
{
// this down() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE vehicle RENAME INDEX idx_1b80e4869df55184 TO IDX_BB385E509DF55184');
$this->addSql('ALTER TABLE vehicle RENAME INDEX idx_1b80e486fe6e88d7 TO IDX_BB385E50FE6E88D7');
$this->addSql('ALTER TABLE vehicle_work_schedule DROP start_location, DROP end_location');
}
}