if not exists (select * FROM sys.syscolumns where name = 'TodoOpenCount' AND id = object_id(N'dbo.Connections')) BEGIN
   alter table dbo.Connections ADD TodoOpenCount int NOT NULL constraint DF_Connections_TodoOpenCount DEFAULT(0)
END;