Files
myep/migrations/Version20260529120000.php
T

27 lines
606 B
PHP

<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20260529120000 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add welcome activation nonce to users';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE user ADD welcome_activation_nonce VARCHAR(64) DEFAULT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE user DROP welcome_activation_nonce');
}
}