-- Revert numerus:contact_web from pg

begin;

set search_path to numerus, public;

alter table contact
  add column web uri
;

update contact
set web = web.uri
from contact_web as web
where web.contact_id = contact.contact_id
;

update contact
set web = ''
where web is null
;

alter table contact
  alter column web set not null
;

drop table if exists numerus.contact_web;

commit;
