Ensure we have acceptable values for patron standing
authordbs <dbs@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Fri, 24 Apr 2009 03:25:28 +0000 (03:25 +0000)
committerdbs <dbs@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Fri, 24 Apr 2009 03:25:28 +0000 (03:25 +0000)
git-svn-id: svn://svn.open-ils.org/ILS-Contrib/conifer/trunk@384 6d9bc8c9-1ec2-4278-b937-99fde70a366f

tools/migration-scripts/windsor_patrons.sql

index 1a461ae..46ca2a6 100644 (file)
@@ -131,7 +131,10 @@ INSERT INTO actor.usr (profile, usrname, passwd, standing, ident_type, ident_val
         END AS profile, 
         trim(both from patron.username) AS usrname,
         trim(both from patron.password) AS passwd,
-        patron.standing AS standing,
+        CASE
+            WHEN patron.standing = 0 THEN 2 -- interpreted as "Barred"?
+            ELSE 1
+        END AS standing,
         CASE
             WHEN patron.identity_type = 'Other' THEN 3
         END AS ident_type,