api/src/Migrations/Version20230207133812.php
<?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 Version20230207133812 extends AbstractMigration
{
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 mobconnect__long_distance_journey ADD http_request_status INT DEFAULT NULL COMMENT \'Status of http request to mobConnect\'');
$this->addSql('ALTER TABLE mobconnect__short_distance_journey ADD http_request_status INT DEFAULT NULL COMMENT \'Status of http request to mobConnect\'');
}
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 mobconnect__long_distance_journey DROP http_request_status');
$this->addSql('ALTER TABLE mobconnect__short_distance_journey DROP http_request_status');
}
}