]> git.evergreen-ils.org Git - Evergreen.git/blob - docs/RELEASE_NOTES_NEXT/Client/lp1846354_consolidate_patron_notes.adoc
check in first draft of release notes
[Evergreen.git] / docs / RELEASE_NOTES_NEXT / Client / lp1846354_consolidate_patron_notes.adoc
1 Consolidate Patron Notes, Alerts, and Messages
2 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3 Patron notes, messages, alert messages, and standing penalties have been folded into one Notes interface.  Notes designated as public will show in the My Account -> Message Center in the OPAC for patrons.
4
5 The underlying data structure has also changed with all notes living in the actor.usr_message table, so report writers will need to change the following paths in existing reports:
6
7     actor.usr_note -> all columns
8     actor.usr -> alert_message
9     actor.usr_standing_penalty -> note
10
11 And for actor.usr_message, there is now both a pub column and a deleted column.
12
13 Depending on privacy policies, system adminstrators may wish to set up a recurring process to truly delete older entries in actor.usr_message that have been flagged as deleted.
14
15 WARNING: The upgrade script will remove the alert_message field from the auditor table, so if you care about preserving those you should run a query to create a backup.
16
17 For example:
18
19 [source,sql]
20 CREATE TABLE auditor.backup_usr_alert_msg AS CREATE audit_id, audit_time, audit_action, audit_user, audit_ws, id as "usr_id", last_update_time, alert_message FROM auditor.actor_usr_history WHERE alert_message IS NOT NULL;