IF NOT EXISTS (SELECT * FROM SYS.columns WHERE NAME = 'FLAG_NAO_PERMITIR_DEVOLUCAO' AND object_id = OBJECT_ID('PDV_VD_DEV_EST_PROD_IMP'))
begin
ALTER TABLE dbo.PDV_VD_DEV_EST_PROD_IMP ADD
	FLAG_NAO_PERMITIR_DEVOLUCAO int NULL
ALTER TABLE dbo.PDV_VD_DEV_EST_PROD_IMP ADD CONSTRAINT
	DF_PDV_VD_DEV_EST_PROD_IMP_FLAG_NAO_PERMITIR_DEVOLUCAO DEFAULT 0 FOR FLAG_NAO_PERMITIR_DEVOLUCAO
end