LP1965797: Add Acq Lineitem Detail Audit Table
[evergreen-equinox.git] / docs / RELEASE_NOTES_NEXT / Acquisitions / lineitem_detail_auditor.adoc
1 == Lineitem Detail Audit Table ==
2
3 The default schema has added an audit table for the
4 `acq.lineitem_detail` table.  The audit table is NOT created during
5 database upgrade.  If you wish to add the audit table to your
6 Evergreen installation, you can run the following SQL in your
7 database:
8
9 [source, sql]
10 ----
11 SELECT acq.create_acq_auditor ( 'acq', 'lineitem_detail' );
12 CREATE INDEX acq_lineitem_detail_hist_id_idx ON acq.acq_lineitem_detail_history( id );
13 CREATE INDEX acq_lineitem_detail_hist_lineitem_idx ON acq.acq_lineitem_detail_history( lineitem );
14 CREATE INDEX acq_lineitem_detail_hist_fund_debit_idx ON acq.acq_lineitem_detail_history( fund_debit );
15 ----