Files
myep/migrations/Version20260817090000.php
T

28 lines
746 B
PHP

<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20260817090000 extends AbstractMigration
{
public function getDescription(): string
{
return 'Store the BusPro first and last name on the user';
}
public function up(Schema $schema): void
{
// Left empty on purpose: the names are synced from BPN on the next login of each account.
$this->addSql('ALTER TABLE user ADD first_name VARCHAR(100) DEFAULT NULL, ADD last_name VARCHAR(100) DEFAULT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE user DROP first_name, DROP last_name');
}
}