﻿IF not EXISTS( SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'OnlineInvoice' AND  COLUMN_NAME = 'Pro_ID_Proxy')
begin
	alter table dbo.OnlineInvoice Add Pro_ID_Proxy	int references dbo.OtherProperties(ID) null
end