<?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 Version20210505162031 extends AbstractMigration
{
public function getDescription() : string
{
return 'Changes "isp" and "referer" column length and type';
}
public function up(Schema $schema) : void
{
$this->addSql('ALTER TABLE digitallink_event_entry ALTER isp TYPE VARCHAR(255)');
$this->addSql('ALTER TABLE digitallink_event_entry ALTER referer TYPE TEXT');
$this->addSql('ALTER TABLE digitallink_event_entry ALTER referer DROP DEFAULT');
}
public function down(Schema $schema) : void
{
$this->addSql('ALTER TABLE digitallink_event_entry ALTER isp TYPE VARCHAR(144)');
$this->addSql('ALTER TABLE digitallink_event_entry ALTER referer TYPE VARCHAR(255)');
$this->addSql('ALTER TABLE digitallink_event_entry ALTER referer DROP DEFAULT');
}
}