removing looking for usrname collections only on non-deleted records since constraint...
authorRogan Hamby <rhamby@esilibrary.com>
Mon, 20 May 2019 18:44:45 +0000 (14:44 -0400)
committerRogan Hamby <rhamby@esilibrary.com>
Mon, 20 May 2019 18:44:45 +0000 (14:44 -0400)
sql/base/base.sql

index f9fe57e..2607c95 100644 (file)
@@ -5291,7 +5291,7 @@ BEGIN
     RAISE INFO '% incumbent barcode collisions', incumbent_barcode_collision_count;
 
     FOR x_barcode IN
-        SELECT a.usrname FROM actor.usr a, actor_usr_legacy b WHERE x_migrate AND a.deleted IS FALSE AND a.usrname = b.usrname
+        SELECT a.usrname FROM actor.usr a, actor_usr_legacy b WHERE x_migrate AND a.usrname = b.usrname
     LOOP
         FOR x_id IN SELECT DISTINCT id FROM actor_usr_legacy WHERE x_migrate AND usrname = x_barcode
         LOOP