Release 2.59 (#5957)

This commit is contained in:
Kevin Papst
2026-06-05 19:05:10 +02:00
committed by GitHub
parent 79d0a2102b
commit 87c85270a9
77 changed files with 2571 additions and 1697 deletions

View File

@@ -0,0 +1,43 @@
<?php
/*
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace DoctrineMigrations;
use App\Doctrine\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
/**
* @version 2.59
*/
final class Version20260530080724 extends AbstractMigration
{
public function getDescription(): string
{
return 'Adds the signature_date column to the user table';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE kimai2_users ADD signature_date DATETIME DEFAULT NULL COMMENT \'(DC2Type:datetime_immutable)\'');
// improve session garbage collection
$this->addSql('CREATE INDEX lifetime_idx ON kimai2_sessions (lifetime)');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE kimai2_users DROP signature_date');
// improve session garbage collection
$this->addSql('DROP INDEX lifetime_idx ON kimai2_sessions');
}
public function isTransactional(): bool
{
return false;
}
}