if not exists (select * FROM sys.syscolumns where name = 'PermissionCacheID' AND id = object_id(N'dbo.Connections'))
    alter table dbo.Connections add PermissionCacheID uniqueidentifier not null constraint DF_Connections_PermissionCacheID default newid();