IF NOT OBJECT_ID('FK_EST_ARV_GRP_RESSUPRIMENTO_CD_CTR_DEPO') IS NULL	
    BEGIN
	   ALTER TABLE EST_ARV_GRP_RESSUPRIMENTO DROP  CONSTRAINT FK_EST_ARV_GRP_RESSUPRIMENTO_CD_CTR_DEPO 
	END
go
IF EXISTS (SELECT * 
		  FROM  
			 INFORMATION_SCHEMA.COLUMNS 
		  WHERE 
			 TABLE_NAME='EST_ARV_GRP_RESSUPRIMENTO'
			 AND COLUMN_NAME='CD_CTR_DEPO'
			 AND IS_NULLABLE='NO')
BEGIN
    ALTER TABLE EST_ARV_GRP_RESSUPRIMENTO ALTER COLUMN CD_CTR_DEPO INT NULL; 
END