Merge branch '415-resq-add-index-for-customer-first-name-and-last-name' into 'master'

Resolve "Resq - add index for customer first name and last name"

Closes #415

See merge request jankstudio/resq!477
This commit is contained in:
Kendrick Chan 2020-05-22 05:53:19 +00:00
commit 761476134c
2 changed files with 8 additions and 2 deletions

View file

@ -10,7 +10,11 @@ use App\Ramcar\CustomerClassification;
/** /**
* @ORM\Entity * @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 class Customer
{ {

View file

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