<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
*
* Migration 5 - Changes from db change sprint 14
*/
final class Version20231025052053 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql("ALTER TABLE `tc_report_generation` CHANGE `type` `type` ENUM('table','chart','operator_performance') CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL;");
$this->addSql("ALTER TABLE `tc_report_generation_form_fields` ADD `field_label` VARCHAR(255) NULL DEFAULT NULL AFTER `field_type`;");
}
public function down(Schema $schema): void
{
$this->addSql("ALTER TABLE `tc_report_generation` CHANGE `type` `type` ENUM('table','chart') CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL;");
$this->addSql("ALTER TABLE `tc_report_generation_form_fields` DROP `field_label`;");
}
}