Let SocialAction::defaultNotificationDelay be nullable.

This commit is contained in:
Pol Dellaiera 2021-06-23 16:40:04 +02:00
parent dc26ca7e77
commit df1f44d814
2 changed files with 30 additions and 1 deletions

View File

@ -47,7 +47,7 @@ class SocialAction
private $children;
/**
* @ORM\Column(type="dateinterval")
* @ORM\Column(type="dateinterval", nullable=true)
*/
private $defaultNotificationDelay;

View File

@ -0,0 +1,29 @@
<?php
declare(strict_types=1);
namespace Chill\Migrations\Person;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20210623142046 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE chill_person_social_action ALTER defaultnotificationdelay DROP NOT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE chill_person_social_action ALTER defaultNotificationDelay SET NOT NULL');
}
}