if not exists(select 1 from sys.syscolumns where name = N'ItemIndex' and id = object_id(N'dbo.SessionRecording'))
    alter table dbo.SessionRecording add ItemIndex int not null constraint DF_SessionRecording_ItemIndex default(0);