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