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