/*****************************************************************************
*
* Filename         - $Workfile:   uld_triggers.sql  $
*
*                     Name              Date      Version     CR Number
* Author           - See revision history below.
* Last Update      - See revision history below.
*
* Project Name     - TAGTRAK(Oracle database)
*
* Source Code
* Identifier       - 0/3/300/8010/112
*
* Design Spec
* Section          - 
*
* Contents         - Archive schema triggers for ulds table.
*
* Language         - Oracle SQL*Plus script
*
* Classification   - Commercial In Confidence
*
*          (c) Ultra Electronics Limited, 1997
*
*****************************************************************************/
/****************************************************************************
* @(#)$Workfile:   uld_triggers.sql  $  $Revision:   1.4  $
*
* Revision History
*
* Note that user tagtrak is many users. For these users the user
* name is entered as the last line in the change description.
*
* $Log:   /shared/pvcs/tagtarch/db_ora/db/source/arch/triggers/uld_triggers.sqv  $
* 
*    Rev 1.4   02 Apr 1998 19:08:16   tagtrak
* OR:
* CR:
* REV:
* Initial Issue
* See label for concession
* 
*    Rev 1.3   15 Jan 1998 15:10:16   tagtrak
* OR: OR11101, TN13, TN15
* CR:
* REV:
* Phase 2C to Phase 3 upgrade plus code review actions and soome technical issues resolved.
* 
*    Rev 1.2   28 Oct 1997 14:14:54   tagtrak
* Added PVCS header
*
****************************************************************************/


create or replace trigger tu_ulds
before update on ulds
begin
	no_archive_modify;
end;
/

create or replace trigger td_ulds
after delete on ulds
for each row
begin
 
	/*  delete children in "uld_dests"  */
	delete from
		uld_dests
	where
		uld_no = :old.uld_no and
		flight_id = :old.flight_id;

end;
/
