/* 
  Extend the length of the login column to varchar(16) to make it the same as extension in the phoneline table.
  See: http://sniptools.com/databases/resize-a-column-in-a-postgresql-table-without-changing-data
*/
UPDATE pg_attribute SET atttypmod = 16 + 4 where attrelid = 'contact'::regclass and attname = 'login';

