-- Добавляем
alter table TCApplicationAttachmentTypes add Скрытое bit
GO
update TCActs set PmaxFromSpec = 0 where PmaxFromSpec is null
update TCActs set PmaxFromContract = 0 where PmaxFromContract is null
update TCActs set PmaxFromNet = 0 where PmaxFromNet is null
alter table TCActs alter column PmaxFromSpec bit not null
alter table TCActs alter column PmaxFromContract bit not null
alter table TCActs alter column PmaxFromNet bit not null

