From: Rogan Hamby Date: Mon, 17 Oct 2016 18:50:31 +0000 (-0400) Subject: removed moving call numbers where items and call numbers were on incompatible orgs... X-Git-Url: http://git.equinoxoli.org/?p=migration-tools.git;a=commitdiff_plain;h=72d8a868b7d8282fc081800422b4848cd4a9fa20;hp=220c52587cae597d5ac513f122342b1e703a099b removed moving call numbers where items and call numbers were on incompatible orgs to be deleted --- diff --git a/remove_ou_data/07_remove_volumes.sql b/remove_ou_data/07_remove_volumes.sql index edea650..5eaec2e 100644 --- a/remove_ou_data/07_remove_volumes.sql +++ b/remove_ou_data/07_remove_volumes.sql @@ -39,15 +39,6 @@ FROM asset.call_number WHERE owning_lib IN DELETE FROM asset.call_number WHERE owning_lib IN (SELECT (actor.org_unit_descendants(id)).id from actor.org_unit where shortname = :ou_to_del); -UPDATE asset.call_number acn SET owning_lib = ac.circ_lib -FROM asset.copy ac -WHERE ac.call_number = acn.id -AND acn.owning_lib IN -(SELECT (actor.org_unit_descendants(id)).id from actor.org_unit where shortname = :ou_to_del) -AND acn.id IN -(SELECT call_number FROM asset.copy WHERE circ_lib NOT IN - (SELECT (actor.org_unit_descendants(id)).id from actor.org_unit where shortname = :ou_to_del)); - COMMIT; ALTER TABLE asset.call_number ENABLE RULE protect_cn_delete;