-- SWH DB schema upgrade
-- from_version: 160
-- to_version: 161
-- description: Make revision.extra_headers not null

-- latest schema version
insert into dbversion(version, release, description)
      values(161, now(), 'Work Still In Progress');


update revision
    set extra_headers = ARRAY[][]
    where extra_headers is null;


alter table revision
    alter column extra_headers set not null;
