mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
[accompanyingPeriodWorkEvaluation] store comment in db
This commit is contained in:
parent
3f005aaf8f
commit
ebb2479966
@ -80,6 +80,7 @@ class AccompanyingPeriodWorkEvaluation implements TrackUpdateInterface, TrackCre
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
|
* @ORM\Column(type="text", nullable=false, options={"default": ""})
|
||||||
* @Serializer\Groups({"read"})
|
* @Serializer\Groups({"read"})
|
||||||
* @Serializer\Groups({"write"})
|
* @Serializer\Groups({"write"})
|
||||||
* @Serializer\Groups({"accompanying_period_work_evaluation:create"})
|
* @Serializer\Groups({"accompanying_period_work_evaluation:create"})
|
||||||
|
@ -67,6 +67,7 @@ class AccompanyingPeriodWorkEvaluationDocument implements \Chill\MainBundle\Doct
|
|||||||
*/
|
*/
|
||||||
private ?DateTimeImmutable $updatedAt;
|
private ?DateTimeImmutable $updatedAt;
|
||||||
|
|
||||||
|
// TODO: indiquer le document généré par le module "document"
|
||||||
private ?StoredObject $storedObject;
|
private ?StoredObject $storedObject;
|
||||||
|
|
||||||
// TODO: ajouter gabarit
|
// TODO: ajouter gabarit
|
||||||
|
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace Chill\Migrations\Person;
|
||||||
|
|
||||||
|
use Doctrine\DBAL\Schema\Schema;
|
||||||
|
use Doctrine\Migrations\AbstractMigration;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add comment to accompanying period work evaluation d
|
||||||
|
*/
|
||||||
|
final class Version20210802202838 extends AbstractMigration
|
||||||
|
{
|
||||||
|
public function getDescription(): string
|
||||||
|
{
|
||||||
|
return 'Add comment to accompanying period work evaluation';
|
||||||
|
}
|
||||||
|
|
||||||
|
public function up(Schema $schema): void
|
||||||
|
{
|
||||||
|
$this->addSql('ALTER TABLE chill_person_accompanying_period_work_evaluation ADD comment TEXT DEFAULT \'\' NOT NULL');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down(Schema $schema): void
|
||||||
|
{
|
||||||
|
$this->addSql('ALTER TABLE chill_person_accompanying_period_work_evaluation DROP comment');
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user