A few more mappings
authordbs <dbs@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Sun, 3 May 2009 20:24:47 +0000 (20:24 +0000)
committerdbs <dbs@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Sun, 3 May 2009 20:24:47 +0000 (20:24 +0000)
git-svn-id: svn://svn.open-ils.org/ILS-Contrib/conifer/trunk@444 6d9bc8c9-1ec2-4278-b937-99fde70a366f

tools/migration-scripts/generate_copies.sql

index 09e8d04..f6ae7d9 100644 (file)
@@ -1,4 +1,5 @@
 BEGIN;
+SET searchpath TO scratchpad, public;
 
 -- Map libraries
 UPDATE staging_items
@@ -65,6 +66,19 @@ UPDATE staging_items
        SET owning_lib = 'XSTRATA'
        WHERE location = 'FALCON';
 
+-- Map item types
+UPDATE staging_items
+       SET item_type = 'BOOK'
+       WHERE item_type IN ('BOOKS');
+
+UPDATE staging_items
+       SET item_type = 'MICROFORM'
+       WHERE item_type = 'MICROFORMS';
+
+UPDATE staging_items
+       SET item_type = 'NEWSPAPER'
+       WHERE item_type = 'NEWSPAPERS';
+
 -- Map locations
 UPDATE staging_items
        SET location = 'AV'