-- -- Copyright (C) 2001, 2002 MIT -- -- This file is part of dotLRN. -- -- dotLRN is free software; you can redistribute it and/or modify it under the -- terms of the GNU General Public License as published by the Free Software -- Foundation; either version 2 of the License, or (at your option) any later -- version. -- -- dotLRN is distributed in the hope that it will be useful, but WITHOUT ANY -- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -- FOR A PARTICULAR PURPOSE. See the GNU General Public License for more -- details. -- -- -- Sanitize the dotLRN Professor package -- -- @author yon@openforce.net -- @version $Id: professors-sanitize.sql,v 1.3 2003/09/30 13:11:39 mohanp Exp $ -- declare foo integer; begin select min(segment_id) into foo from rel_segments where segment_name = 'dotLRN Professors'; rel_segment.del( segment_id => foo ); select min(group_id) into foo from profiled_groups where profile_provider = (select min(impl_id) from acs_sc_impls where impl_name = 'dotlrn_professor_profile_provider'); delete from dotlrn_user_types where group_id = foo; profiled_group.del( group_id => foo ); acs_rel_type.drop_type( rel_type => 'dotlrn_professor_profile_rel', cascade_p => 't' ); end; / show errors