have the merge proc delete the source record after asset merging
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 15 Apr 2009 01:10:02 +0000 (01:10 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 15 Apr 2009 01:10:02 +0000 (01:10 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@12871 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/sql/Pg/090.schema.action.sql

index 494dbed..2b13c93 100644 (file)
@@ -476,6 +476,9 @@ BEGIN
                moved_objects := moved_objects + 1;
        END LOOP;
 
+    -- Finally, "delete" the source record
+    DELETE FROM biblio.record_entry WHERE id = source_record;
+
        -- That's all, folks!
        RETURN moved_objects;
 END;