This is an sql query for adding an index in descending order in the lead table.
How do I create the same index using lead's entityDefs?
I tried like this, but no success.
Also, does Espo delete the indexes that are created manually in the database when you rebuild the system?
HTML Code:
create index UNIQ_CREATED_AT_ID_DESC on `lead` (created_at desc, id desc);
I tried like this, but no success.
HTML Code:
{ "indexes": { "createdAtAndIdDesc": { "unique": true, "columns": ["createdAt","id"], "asc": false } } }
Comment