numerus/revert/contact_web.sql

24 lines
336 B
PL/PgSQL

-- 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
;
alter table contact
alter column web set not null
;
drop table if exists numerus.contact_web;
commit;