Add index for customer first name, customer last name, and date_schedule. #415

This commit is contained in:
Korina Cordero 2020-05-22 05:51:52 +00:00
parent 2aa6d417b7
commit 7bd2a6fb31
2 changed files with 8 additions and 2 deletions

View file

@ -10,7 +10,11 @@ use App\Ramcar\CustomerClassification;
/**
* @ORM\Entity
* @ORM\Table(name="customer", indexes={@ORM\Index(name="phone_mobile_idx", columns={"phone_mobile"})})
* @ORM\Table(name="customer", indexes={
* @ORM\Index(name="phone_mobile_idx", columns={"phone_mobile"}),
* @ORM\Index(columns={"first_name"}, flags={"fulltext"}),
* @ORM\Index(columns={"last_name"}, flags={"fulltext"})
* })
*/
class Customer
{

View file

@ -15,7 +15,9 @@ use App\Ramcar\ServiceType;
/**
* @ORM\Entity
* @ORM\Table(name="job_order")
* @ORM\Table(name="job_order", indexes={
* @ORM\Index(name="date_schedule_idx", columns={"date_schedule"})
* })
*/
class JobOrder
{