如何在Doctrine中声明一个postgresql索引,例如:
CREATE INDEX index_name_city_hotel ON booking_hotels(lower(name) text_pattern_ops, city_hotel, cc1)
我已经尝试过了,但好像无法使用lower()函数。 由于lower函数的原因,这是行不通的:
我已经尝试过了,但好像无法使用lower()函数。 由于lower函数的原因,这是行不通的:
indexes={
@ORM\Index(name="index_name_city_hotel", columns={"lower(name) text_pattern_ops", "city_hotel", "cc1"})
thanks in advance for your help.