
ALTER TABLE dbo.EST_NF_ENT_PRE_ENTRADA_N_LIB
	DROP CONSTRAINT FK_EST_NF_ENT_PRE_ENTRADA_N_LIB_EST_NF_ENT_PRE_ENTRADA
GO
GO
ALTER TABLE dbo.EST_NF_ENT_PRE_ENTRADA_N_LIB ADD CONSTRAINT
	FK_EST_NF_ENT_PRE_ENTRADA_N_LIB_EST_NF_ENT_PRE_ENTRADA FOREIGN KEY
	(
	CD_EMP,
	CD_CTR_PRE_ENTRADA
	) REFERENCES dbo.EST_NF_ENT_PRE_ENTRADA
	(
	CD_EMP,
	CD_CTR_PRE_ENTRADA
	) ON UPDATE  CASCADE 
	 ON DELETE  CASCADE 
	
