IF NOT OBJECT_ID ('FK_EST_PROD_PRC_REGIAO_FISCAL_EST_TRIB_CONF_GRP_PG_FORN_EST_TRIB_CONF_GRP') IS NULL
	BEGIN
		ALTER TABLE [dbo].[EST_PROD_PRC_REGIAO_FISCAL_EST_TRIB_CONF_GRP_PG_FORN]  DROP CONSTRAINT [FK_EST_PROD_PRC_REGIAO_FISCAL_EST_TRIB_CONF_GRP_PG_FORN_EST_TRIB_CONF_GRP] 
	END

GO

IF NOT OBJECT_ID('EST_PROD_PRC_REGIAO_FISCAL_EST_TRIB_CONF_GRP_PG_FORN') IS NULL
	BEGIN
		ALTER TABLE [dbo].[EST_PROD_PRC_REGIAO_FISCAL_EST_TRIB_CONF_GRP_PG_FORN]  WITH NOCHECK ADD  CONSTRAINT [FK_EST_PROD_PRC_REGIAO_FISCAL_EST_TRIB_CONF_GRP_PG_FORN_EST_TRIB_CONF_GRP] FOREIGN KEY([CD_EMP],[CD_CTR])
		REFERENCES [dbo].[EST_TRIB_CONF_GRP] ([CD_EMP],[CD_CTR])		
		ON UPDATE CASCADE
	END
		