-- -- packages/bboard/sql/upgrade-4.0.2b3-4.0.2b4.sql -- -- @author Anukul Kapoor -- @creation-date 2001-01-15 -- @cvs-id $Id: upgrade-4.0.2b3-4.0.2b4.sql,v 1.1.1.1 2002/07/09 17:35:01 rmello Exp $ -- set feedback off -- NOTE: this is only temporary until we figure out how -- packages will register child types to an acs-message declare v_exists integer; begin select decode(count(*),0,0,1) into v_exists from cr_type_children where parent_type = 'acs_message_revision' and child_type = 'content_revision'; if v_exists = 0 then content_type.register_child_type ( parent_type => 'acs_message_revision', child_type => 'content_revision' ); end if; select decode(count(*),0,0,1) into v_exists from cr_type_children where parent_type = 'acs_message_revision' and child_type = 'content_revision'; if v_exists = 0 then content_type.register_child_type ( parent_type => 'acs_message_revision', child_type => 'image' ); end if; select decode(count(*),0,0,1) into v_exists from cr_type_children where parent_type = 'acs_message_revision' and child_type = 'content_revision'; if v_exists = 0 then content_type.register_child_type ( parent_type => 'acs_message_revision', child_type => 'content_extlink' ); end if; end; / show errors