lp1846354 update auditors
authorJason Etheridge <jason@EquinoxInitiative.org>
Thu, 6 Aug 2020 17:26:20 +0000 (13:26 -0400)
committerMike Rylander <mrylander@gmail.com>
Tue, 8 Sep 2020 19:21:25 +0000 (15:21 -0400)
fixes updating patrons and allowing them to login

one consequence of this is that old alert_messages in the auditor will be deleted

Signed-off-by: Jason Etheridge <jason@EquinoxInitiative.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.note_and_message_consolidation

index a109ac2..5da0cac 100644 (file)
@@ -209,8 +209,9 @@ do $$ begin
     ) = 0, 'failed migrating to actor.usr_standing_penalty';
 end; $$;
 
--- extends to auditor.actor_usr_lifecycle
+-- WARNING: we're going to lose the history of alert_message
 ALTER TABLE actor.usr DROP COLUMN alert_message CASCADE;
+SELECT auditor.update_auditors();
 
 -- fun part where we migrate actor.usr_notes as penalties to preserve
 -- their creator, and then the private ones to private user messages.