W
W
wittyrider2015-09-04 22:35:24
symfony
wittyrider, 2015-09-04 22:35:24

How to create functional indexes in doctrine2?

Is it possible to create such UPPER(colname) indexes using doctrine?
UPD: PostgreSQL DB

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Skobkin, 2015-09-05
@wittyrider

As far as I know, there is no such option out of the box.
As a workaround, you can create such an index using migrations (they are generally useful to use regardless of this, and there is a special Doctrine Migrations bundle). True, it will be a crutch, which has a decent amount of minuses.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question