[open-ils-commits] r444 - conifer/trunk/tools/migration-scripts (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Sun May 3 16:24:51 EDT 2009
Author: dbs
Date: 2009-05-03 16:24:47 -0400 (Sun, 03 May 2009)
New Revision: 444
Modified:
conifer/trunk/tools/migration-scripts/generate_copies.sql
Log:
A few more mappings
Modified: conifer/trunk/tools/migration-scripts/generate_copies.sql
===================================================================
--- conifer/trunk/tools/migration-scripts/generate_copies.sql 2009-05-03 17:40:43 UTC (rev 443)
+++ conifer/trunk/tools/migration-scripts/generate_copies.sql 2009-05-03 20:24:47 UTC (rev 444)
@@ -1,4 +1,5 @@
BEGIN;
+SET searchpath TO scratchpad, public;
-- Map libraries
UPDATE staging_items
@@ -65,6 +66,19 @@
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'
More information about the open-ils-commits
mailing list