alter table public.documents
  add column if not exists wide_layout boolean not null default false;

alter table public.documents
  add column if not exists use_small_text boolean not null default false;

alter table public.documents
  add column if not exists show_heading_numbers boolean not null default true;

alter table public.documents
  add column if not exists show_toc boolean not null default false;

alter table public.documents
  add column if not exists show_structure boolean not null default false;

alter table public.documents
  add column if not exists protect_editing boolean not null default false;

alter table public.documents
  add column if not exists show_word_count boolean not null default true;

alter table public.documents
  add column if not exists word_count integer not null default 0;

alter table public.documents
  add column if not exists character_count integer not null default 0;

alter table public.documents
  add column if not exists block_count integer not null default 0;
