﻿IF not EXISTS( SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'BargehGold' AND  COLUMN_NAME = 'BG_ID')
begin
	alter table dbo.BargehGold	add BG_ID int references dbo.BargehGold(ID) null
end