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