<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20230824163829 extends AbstractMigration
{
public function getDescription(): string
{
return 'Column for refresh token expiration time';
}
public function up(Schema $schema): void
{
$this->addSql("
ALTER TABLE `tik_tok_auth`
ADD COLUMN `refresh_expires_at` TIMESTAMP NULL
");
}
public function down(Schema $schema): void
{
$this->addSql("
ALTER TABLE `tik_tok_auth` DROP COLUMN `refresh_expires_at`;
");
}
}