-- -- 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. -- -- -- drop portal metadata -- -- @author arjun@openforce.net -- @author yon@openforce.net -- @creation-date 2001-10-01 -- @version $Id: objects-drop.sql,v 1.1 2002/10/25 21:29:17 yon Exp $ -- delete from acs_permissions where object_id in (select object_id from acs_objects where object_type in ('portal', 'portal_theme', 'portal_page', 'portal_layout')); delete from acs_permissions where object_id in (select package_id from apm_packages where package_key = 'portal'); delete from acs_objects where object_type in ('portal', 'portal_theme', 'portal_page', 'portal_layout'); begin acs_object_type.drop_type('portal_layout'); acs_object_type.drop_type('portal_page'); acs_object_type.drop_type('portal_theme'); acs_object_type.drop_type('portal'); end; / show errors