if not exists (select * FROM sys.syscolumns where name = 'CustomerID' AND id = object_id(N'dbo.Todo')) 
  alter table dbo.todo ADD CustomerID uniqueidentifier null FOREIGN KEY REFERENCES dbo.Customer(ID);