diff --git a/src/Entity/Configuration.php b/src/Entity/Configuration.php index 2d46a279..4fb06685 100644 --- a/src/Entity/Configuration.php +++ b/src/Entity/Configuration.php @@ -43,8 +43,7 @@ class Configuration /** * @var string|null * - * @ORM\Column(name="value", type="string", length=1024, nullable=true) - * @Assert\Length(max=1024, allowEmptyString=true) + * @ORM\Column(name="value", type="text", nullable=true) */ private $value; diff --git a/src/Migrations/Version20220404150236.php b/src/Migrations/Version20220404150236.php new file mode 100644 index 00000000..42815744 --- /dev/null +++ b/src/Migrations/Version20220404150236.php @@ -0,0 +1,40 @@ +getTable('kimai2_configuration'); + $configuration->getColumn('value')->setType(Type::getType(Types::TEXT)); + } + + public function down(Schema $schema): void + { + $configuration = $schema->getTable('kimai2_configuration'); + $configuration->getColumn('value')->setLength(1024)->setType(Type::getType(Types::STRING)); + } +}