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