reduce field size to 150 chars to prevent index out of length (#1031)

This commit is contained in:
Kevin Papst
2019-08-16 16:57:09 +02:00
committed by GitHub
parent b6d9bb0d2a
commit 388c3ec188
9 changed files with 131 additions and 14 deletions

View File

@@ -50,16 +50,18 @@ class Activity implements EntityWithMetaFields
/**
* @var string
*
* @ORM\Column(name="name", type="string", length=255, nullable=false)
* Do not increase length to more than 190 chars, otherwise "Index column size too large." will be triggered.
*
* @ORM\Column(name="name", type="string", length=150, nullable=false)
* @Assert\NotBlank()
* @Assert\Length(min=2, max=255)
* @Assert\Length(min=2, max=150)
*/
private $name;
/**
* @var string
*
* @ORM\Column(name="comment", type="text", length=65535, nullable=true)
* @ORM\Column(name="comment", type="text", nullable=true)
*/
private $comment;