IF not EXISTS( SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'Repair' AND COLUMN_NAME = 'Pro_ID_Status') begin alter table Repair Add Pro_ID_Status int references OtherProperties(ID) not null default -1 -- پذیرش شده | درحال تعمیر | فوری | تعیین هزینه | منتظر قطعه | تعمیر شد | مرجوع شد | غیرقابل تعمیر | ایرداری مشاهده نشد | انصراف از تعمیر end