﻿IF not EXISTS( SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'PopularityVote' AND  COLUMN_NAME = 'Dom_ID_RowType')
begin
	alter table PopularityVote add Dom_ID_RowType int references Domain (ID) not null default -1
end