FEATURE [eval][duration] property added to an to save the time spent working on evaluation

This commit is contained in:
2023-02-10 11:53:08 +01:00
parent 6254303392
commit f75f6719bc
2 changed files with 43 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
<?php
declare(strict_types=1);
namespace Chill\Migrations\Person;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20230210104424 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add a duration field to accompanyingPeriodWorkEvaluation';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE chill_person_accompanying_period_work_evaluation ADD timeSpent TIME(0) WITHOUT TIME ZONE DEFAULT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE chill_person_accompanying_period_work_evaluation DROP timeSpent');
}
}