﻿IF not EXISTS( SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'Product' AND  COLUMN_NAME = 'Dom_ID_Type')
begin
	alter table dbo.Product add Dom_ID_Type	int references domain(ID) not null default -1
end;
IF not EXISTS( SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'ProductDetail' AND  COLUMN_NAME = 'Taf_ID2')
begin
	alter table dbo.ProductDetail add Taf_ID2	bigint references dbo.tafsili(ID) null
end