<?php
declare(strict_types=1);
namespace CoreMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20230811081245 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 user ADD login_name VARCHAR(128) DEFAULT NULL, ADD api_pin VARCHAR(20) DEFAULT NULL, ADD api_token VARCHAR(40) DEFAULT NULL, ADD api_token_validity DATETIME DEFAULT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE user DROP login_name, DROP api_pin, DROP api_token, DROP api_token_validity');
}
}