﻿IF not EXISTS( SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'PopularityVote' AND  COLUMN_NAME = 'Bar_ID')
begin
	alter table dbo.PopularityVote add Bar_ID	int references dbo.Bargeh(ID) null
end;
IF not EXISTS( SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'PopularityVote' AND  COLUMN_NAME = 'Sup_ID')
begin
	alter table dbo.PopularityVote add Sup_ID	int references dbo.Support(ID) null
end