<?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 Version20250604075208 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 `students`
DROP COLUMN `maspedImportDate`,
ADD COLUMN `masped_student_id` INT NULL DEFAULT NULL AFTER `ttiStudentId`,
ADD UNIQUE INDEX `masped_student_id_UNIQUE` (`masped_student_id` ASC) VISIBLE;");
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql("ALTER TABLE `students`
ADD COLUMN `maspedImportDate` DATE NULL AFTER `isapYear`,
DROP COLUMN `maspedStudentId`");
}
}