Fix purge_user_activity.pg live test user/csharp/fix_purge_user_activity_pg_tap_test user/csharp/lp1640157_fix_purge_user_activity_pg_tap_test
authorChris Sharp <csharp@georgialibraries.org>
Tue, 8 Nov 2016 00:10:06 +0000 (19:10 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Tue, 8 Nov 2016 00:29:06 +0000 (19:29 -0500)
commitbdd4aa124560ad98a9b02c2a18692c72d7d128c8
treefa9d016346b41020fa2aaa26fde7d7eb6460ce93
parentad0f60ac409b8434a5ee3e552b2efa0358ae6a00
Fix purge_user_activity.pg live test

The purge_user_activity.pg test inserts rows into actor.usr_activity
in a random date order, but the changes in bug 1570909 created a trigger
that overwrites the previous entry for a transient type, causing the
test to fail.  We reorder the usr_activity rows so that the most recent
row will be in place.

Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Open-ILS/src/sql/Pg/live_t/purge-user-activity.pg