 ALTER INDEX suites_pkey RENAME TO suites_info_pkey ;
 
 ALTER TABLE packages RENAME TO package_names ;
+ALTER INDEX packages_pkey
+  RENAME TO package_names_pkey ;
+ALTER SEQUENCE packages_id_seq
+  RENAME TO package_names_id_seq ;
+
 ALTER TABLE versions
   RENAME COLUMN package_id TO name_id ;
 -- see below

  RENAME TO ix_packages_version ;
ALTER INDEX versions_pkey
  RENAME TO packages_pkey ;

--   RENAME TO ix_versions_name_id ;

ALTER TABLE versions RENAME TO packages ;
ALTER SEQUENCE versions_id_seq
  RENAME TO packages_id_seq ;
ALTER INDEX ix_versions_package_id_vnumber
  RENAME TO ix_packages_name_id_version ;
ALTER INDEX ix_versions_area
