--RN07 - criar campo n_proc na tabela est_nf_ent_it
IF NOT EXISTS(SELECT 1 FROM SYSCOLUMNS WHERE ID = OBJECT_ID('est_nf_ent_it') AND NAME = 'CD_PROC_FISCAL_REFERENCIADO')
BEGIN
	ALTER TABLE EST_NF_ENT_IT ADD CD_PROC_FISCAL_REFERENCIADO NUMERIC (6,0) NULL
END