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