<?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 Version20240118202703 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 targets MODIFY COLUMN internal_id mediumint(9) DEFAULT NULL NULL;");
$this->addSql("CREATE INDEX ix_target_internal_id USING BTREE ON geoedge.targets (internal_id);");
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql("ALTER TABLE targets MODIFY COLUMN internal_id int(11) DEFAULT NULL NULL;");
$this->addSql("ALTER TABLE targets DROP INDEX ix_target_internal_id;");
}
}