audiobookshelf/test
Kevin Gatera 3e86d6ef50
add postgres denormalization triggers for library items
The sqlite triggers that keep libraryItems.title[IgnorePrefix] and
authorNamesFirstLast/LastFirst fresh were skipped on postgres, so title
edits, author renames, and bookAuthor changes left stale sort/search
columns. Mirror them with native pg trigger functions (string_agg in
place of GROUP_CONCAT) using folded lowercase identifiers, and keep the
same trigger names and existence checks. Validated against PostgreSQL
14: title propagation, author insert/delete/rename, createdat ordering,
and null-on-empty all match sqlite semantics.
2026-08-02 18:39:27 -04:00
..
server add postgres denormalization triggers for library items 2026-08-02 18:39:27 -04:00