Files
mip/Data/Test/create_passwords.sql
PriestJ 69c2ead1ee fixed bug in Installmip.cmd, test section would never get run and the usage section caused an error.
Massaged the test data so that some base users get added to the test schema, duplicated the seed party data upload so that the Advantica user still exists

git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@2897 248e525c-4dfb-0310-94bc-949c084e9493
2007-11-28 13:17:46 +00:00

22 lines
434 B
SQL

DECLARE
l_hash varchar2(240);
BEGIN
FOR l_pwd IN (SELECT id, username
FROM parties
WHERE username IS NOT NULL) LOOP
l_hash := mip_security.get_hash(p_username=>l_pwd.username, p_password=>'password');
INSERT INTO passwords
(prty_id
,password_hash
,created_on)
VALUES
(l_pwd.id
,l_hash
,SYSDATE);
END LOOP;
END;
/
exit