Skip to content

Commit

Permalink
TASK: Limit parentpath index length through annotation
Browse files Browse the repository at this point in the history
As of Doctrine DBAL 2.9.2 this is actually possible, so we can finally
do it right.

See neos#2475
  • Loading branch information
kdambekalns committed May 3, 2019
1 parent c329229 commit e674e85
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Neos.ContentRepository/Classes/Domain/Model/NodeData.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,11 @@
* },
* indexes={
* @ORM\Index(name="parentpath_sortingindex",columns={"parentpathhash", "sortingindex"}),
* @ORM\Index(name="parentpath",columns={"parentpath"}),
* @ORM\Index(name="parentpath",columns={"parentpath"},options={"lengths": {255}}),
* @ORM\Index(name="identifierindex",columns={"identifier"}),
* @ORM\Index(name="nodetypeindex",columns={"nodetype"})
* }
* )
*
* The parentpath index above is actually limited to a size of 255 characters in the corresponding MySQL migration,
* something that cannot be expressed through the annotation.
*/
class NodeData extends AbstractNodeData
{
Expand Down

0 comments on commit e674e85

Please sign in to comment.