<?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 Version20230312132839 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 `exams`
ADD COLUMN `program_started_content_code` VARCHAR(255) NULL DEFAULT NULL AFTER `program_content_code`,
ADD COLUMN `program_completed_content_code` VARCHAR(255) NULL DEFAULT NULL AFTER `program_started_content_code`;");
$this->addSql("ALTER TABLE `registrations`
ADD COLUMN `online_program_started` DATETIME NULL DEFAULT NULL AFTER `online_program_redirect`,
ADD COLUMN `online_program_completed` DATETIME NULL DEFAULT NULL AFTER `online_program_started`;");
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql("ALTER TABLE `exams`
DROP COLUMN `program_started_content_code` ,
DROP COLUMN `program_completed_content_code`;");
$this->addSql("ALTER TABLE `registrations`
DROP COLUMN `online_program_started` DATETIME NULL DEFAULT NULL AFTER `online_program_redirect`,
DROP COLUMN `online_program_completed` DATETIME NULL DEFAULT NULL AFTER `online_program_started`;");
}
}