Commit 015f5263 by Julien Jorry

Fix installation bug, global parameter not mandatory

parent 601cdb35
...@@ -72,7 +72,7 @@ class GlobalParameter ...@@ -72,7 +72,7 @@ class GlobalParameter
private $description; private $description;
/** /**
* @ORM\Column(type="text") * @ORM\Column(type="text", nullable=true)
*/ */
private $value; private $value;
......
...@@ -49,7 +49,6 @@ class GlobalParameterType extends AbstractType ...@@ -49,7 +49,6 @@ class GlobalParameterType extends AbstractType
{ {
$resolver->setDefaults([ $resolver->setDefaults([
'data_class' => GlobalParameter::class, 'data_class' => GlobalParameter::class,
'required' => true,
'name_param' => '', 'name_param' => '',
'_placeholder' => '', '_placeholder' => '',
'_mandatory' => true, '_mandatory' => true,
......
<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20221009123707 extends AbstractMigration
{
public function getDescription() : string
{
return '';
}
public function up(Schema $schema) : void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE global_parameter CHANGE value value LONGTEXT DEFAULT NULL');
}
public function down(Schema $schema) : void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE global_parameter CHANGE value value LONGTEXT CHARACTER SET utf8mb3 NOT NULL COLLATE `utf8mb3_general_ci`');
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment