adding indexes

This commit is contained in:
2018-11-13 21:53:28 +01:00
parent 38c272f89e
commit d1083e97cb
5 changed files with 87 additions and 2 deletions

View File

@@ -9,7 +9,19 @@ use Doctrine\Common\Collections\Collection;
/**
* SingleTask
*
* @ORM\Table("chill_task.single_task")
* @ORM\Table(
* "chill_task.single_task",
* indexes={
* @ORM\Index(
* name="by_type",
* columns={ "type" }
* ),
* @ORM\Index(
* name="by_current_state",
* columns={ "current_states" }
* )
* }
* )
* @ORM\Entity(repositoryClass="Chill\TaskBundle\Repository\SingleTaskRepository")
*/
class SingleTask extends AbstractTask

View File

@@ -23,7 +23,18 @@ use Chill\TaskBundle\Entity\SingleTask;
/**
*
*
* @ORM\Table("chill_task.single_task_place_event")
* @ORM\Table(
* "chill_task.single_task_place_event",
* indexes={
* @ORM\Index(
* name="transition_task_date",
* columns={"task_id", "transition", "datetime"}
* ),
* @ORM\Index(
* name="transition_task",
* columns={"task_id", "transition"}
* )
* })
* @ORM\Entity()
*
* @author Julien Fastré <julien.fastre@champs-libres.coop>