/*****************************************************************************
*
* Filename         - $Workfile:   weights_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         - Live schema - triggers for weights table
*
* Language         - Oracle SQL*Plus script
*
* Classification   - Commercial In Confidence
*
*          (c) Ultra Electronics Limited, 1998
*
*****************************************************************************/
/****************************************************************************
* @(#)$Workfile:   weights_triggers.sql  $  $Revision:   1.1  $
*
* 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:   /pvcsarch/db_ora/db/source/live/triggers/weights_triggers.svl  $
* 
*    Rev 1.1   21 Jun 2001 15:04:56   tagtrak
* OR:
* CR:
* Re-baseline version 4.0.0 to include patches.
* 
*    Rev 1.0   03 Jun 1998 12:15:10   tagtrak
* Initial check-in to PVCS
*
****************************************************************************/

create or replace trigger ti_weights
before insert on weights
for each row
begin

	if ( :new.timestamp is null ) then
		:new.timestamp := sysdate + get_offset.airport_code(:new.site_id);
	end if;

end;
/
