Release 2.23.0 (#5075)
This commit is contained in:
@@ -48,9 +48,4 @@ final class Version20240214061246 extends AbstractMigration
|
||||
|
||||
$schema->dropTable('kimai2_access_token');
|
||||
}
|
||||
|
||||
public function isTransactional(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
40
migrations/Version20240926111739.php
Normal file
40
migrations/Version20240926111739.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?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.23
|
||||
*/
|
||||
final class Version20240926111739 extends AbstractMigration
|
||||
{
|
||||
public function getDescription(): string
|
||||
{
|
||||
return 'Adds created_at and break duration column';
|
||||
}
|
||||
|
||||
public function up(Schema $schema): void
|
||||
{
|
||||
$this->addSql('ALTER TABLE kimai2_activities ADD created_at DATETIME DEFAULT NULL COMMENT \'(DC2Type:datetime_immutable)\'');
|
||||
$this->addSql('ALTER TABLE kimai2_customers ADD created_at DATETIME DEFAULT NULL COMMENT \'(DC2Type:datetime_immutable)\'');
|
||||
$this->addSql('ALTER TABLE kimai2_projects ADD created_at DATETIME DEFAULT NULL COMMENT \'(DC2Type:datetime_immutable)\'');
|
||||
$this->addSql('ALTER TABLE kimai2_timesheet ADD break INT DEFAULT NULL');
|
||||
}
|
||||
|
||||
public function down(Schema $schema): void
|
||||
{
|
||||
$this->addSql('ALTER TABLE kimai2_timesheet DROP break');
|
||||
$this->addSql('ALTER TABLE kimai2_projects DROP created_at');
|
||||
$this->addSql('ALTER TABLE kimai2_customers DROP created_at');
|
||||
$this->addSql('ALTER TABLE kimai2_activities DROP created_at');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user