if not exists(select 1 from syscolumns where id = object_id('EST_PED_VD_PENDENCIA') and name = 'FLAG_REALIZAR_FAT')
begin 
	ALTER TABLE dbo.EST_PED_VD_PENDENCIA ADD
		FLAG_REALIZAR_FAT int NOT NULL CONSTRAINT DF_EST_PED_VD_PENDENCIA_FLAG_REALIZAR_FAT DEFAULT 0
end