From: dbs Date: Fri, 24 Apr 2009 03:25:28 +0000 (+0000) Subject: Ensure we have acceptable values for patron standing X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=494594f4956bdf36941e4716b5d355882af09551;p=contrib%2FConifer.git Ensure we have acceptable values for patron standing git-svn-id: svn://svn.open-ils.org/ILS-Contrib/conifer/trunk@384 6d9bc8c9-1ec2-4278-b937-99fde70a366f --- diff --git a/tools/migration-scripts/windsor_patrons.sql b/tools/migration-scripts/windsor_patrons.sql index 1a461aed9e..46ca2a662e 100644 --- a/tools/migration-scripts/windsor_patrons.sql +++ b/tools/migration-scripts/windsor_patrons.sql @@ -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,