ALTER TABLE analyzed_object DROP COLUMN parent_analyzed_object_part_id;
DROP TABLE analyzed_object_part_namespaces;
DROP TABLE analyzed_object_part;
DROP SEQUENCE analyzed_object_part_id_seq;

ALTER TABLE analyzed_message_part RENAME TO analyzed_object_part;
ALTER SEQUENCE analyzed_message_part_id_seq RENAME TO analyzed_object_part_id_seq;
ALTER TABLE analyzed_message_part_namespaces RENAME TO analyzed_object_part_namespaces;
ALTER TABLE analyzed_object_part_namespaces RENAME analyzed_message_part_id TO analyzed_object_part_id;
ALTER TABLE analyzed_object RENAME parent_analyzed_message_part_id TO parent_analyzed_object_part_id;
