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