<?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 Version20250507052647 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE tourapp.users ADD last_login_at TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL');
$this->addSql('ALTER TABLE tourapp.users ADD password_changed_at TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL');
$this->addSql("INSERT INTO tourapp.log_types (id, log_type_name) VALUES
(47, 'Reset hasła - zmiana'),
(48, 'Reset hasła - token'),
(49, 'Próba logowania do systemu');
");
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE tourapp.users DROP last_login_at');
$this->addSql('ALTER TABLE tourapp.users DROP password_changed_at');
}
}