if not exists(select * from sys.syscolumns where name = 'CheckoutReasonMode' and id = object_id(N'dbo.PamFolder'))
    alter table dbo.PamFolder add CheckoutReasonMode int not null constraint DF_PamFolder_CheckoutReasonMode default 0;