Merge branch 'master' of git.esilibrary.com:migration-tools
[migration-tools.git] / sql / base / base.sql
index 7fdfc13..46d221a 100644 (file)
@@ -3672,7 +3672,7 @@ $$ LANGUAGE PLPGSQL STRICT VOLATILE;
 
 -- convenience functions for handling copy_location maps
 CREATE OR REPLACE FUNCTION migration_tools.handle_shelf (TEXT,TEXT,TEXT,INTEGER) RETURNS VOID AS $$
-    PEFORM migration_tools._handle_shelf($1,$2,$3,$4,TRUE);
+    SELECT migration_tools._handle_shelf($1,$2,$3,$4,TRUE);
 $$ LANGUAGE SQL;
 
 CREATE OR REPLACE FUNCTION migration_tools._handle_shelf (TEXT,TEXT,TEXT,INTEGER,BOOLEAN) RETURNS VOID AS $$
@@ -5445,7 +5445,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