<?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 Version20220503184919 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 `paper_exam_upload_errors`
ADD COLUMN `request_url` VARCHAR(500) NULL AFTER `run_date`,
CHANGE COLUMN `registration_id` `entity_id` INT NOT NULL , RENAME TO `tal_api_error_logs` ;
");
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql("ALTER TABLE `tal_api_error_logs`
drop COLUMN `request_url`,
CHANGE COLUMN `entity_id` `registration_id` INT NOT NULL , RENAME TO `paper_exam_upload_errors` ;
");
}
}