Skip to content

Commit

Permalink
[MODINVOSTO-IDX-FIX]. Remove faulty invoices_no_acq_unit index (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
BKadirkhodjaev authored Jul 29, 2024
1 parent 1cfcad1 commit a78e19e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/main/resources/templates/db_scripts/invoices_table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,3 @@ CREATE INDEX IF NOT EXISTS invoices_status_sort ON ${myuniversity}_${mymodule}.i

CREATE INDEX IF NOT EXISTS invoices_invoice_total_sort ON ${myuniversity}_${mymodule}.invoices
(left(lower(f_unaccent(invoices.jsonb->>'invoiceTotal')),600), lower(f_unaccent(invoices.jsonb->>'invoiceTotal')));

CREATE INDEX IF NOT EXISTS invoices_no_acq_unit ON ${myuniversity}_${mymodule}.invoices(jsonb)
WHERE left(lower(f_unaccent(jsonb ->> 'acqUnitIds')), 600) NOT LIKE '[]';

0 comments on commit a78e19e

Please sign in to comment.