-- Revert numerus:contact_phone from pg begin; set search_path to numerus, public; alter table contact add column phone packed_phone_number ; update contact set phone = phone.phone from contact_phone as phone where phone.contact_id = contact.contact_id ; alter table contact alter column phone set not null ; drop table if exists contact_phone; commit;