Remove Contact and ContactHistory Java objects and related code (#2964)

This doesn't remove everything -- there are still other contact-related
objects that we'll need to remove (e.g.
ContactPendingActionNotificationResponse) and simplifications we'll need to make
(e.g. only domains can be transferred now, so all transfer data can move
there instead of being generic)

But this removes the bulk of the remaining contact-related code. We'll
keep around the XML request objects, since it's still nice to route them
to the appropriate (exception-throwing but logging) flow class.
This commit is contained in:
gbrodman
2026-02-20 16:22:29 +00:00
committed by GitHub
parent c7f2db177b
commit ee8746c857
33 changed files with 50 additions and 1525 deletions
@@ -145,140 +145,6 @@
primary key (revision_id)
);
create table "Contact" (
repo_id text not null,
update_timestamp timestamp(6) with time zone,
creation_registrar_id text,
creation_time timestamp(6) with time zone,
current_sponsor_registrar_id text,
deletion_time timestamp(6) with time zone,
last_epp_update_registrar_id text,
last_epp_update_time timestamp(6) with time zone,
statuses text[],
auth_info_repo_id text,
auth_info_value text,
contact_id text,
disclose_types_addr text[],
disclose_show_email boolean,
disclose_show_fax boolean,
disclose_mode_flag boolean,
disclose_types_name text[],
disclose_types_org text[],
disclose_show_voice boolean,
email text,
fax_phone_extension text,
fax_phone_number text,
addr_i18n_city text,
addr_i18n_country_code text,
addr_i18n_state text,
addr_i18n_street_line1 text,
addr_i18n_street_line2 text,
addr_i18n_street_line3 text,
addr_i18n_zip text,
addr_i18n_name text,
addr_i18n_org text,
addr_i18n_type text check (addr_i18n_type in ('LOCALIZED','INTERNATIONALIZED')),
last_transfer_time timestamp(6) with time zone,
addr_local_city text,
addr_local_country_code text,
addr_local_state text,
addr_local_street_line1 text,
addr_local_street_line2 text,
addr_local_street_line3 text,
addr_local_zip text,
addr_local_name text,
addr_local_org text,
addr_local_type text check (addr_local_type in ('LOCALIZED','INTERNATIONALIZED')),
search_name text,
transfer_history_entry_id bigint,
transfer_poll_message_id_1 bigint,
transfer_poll_message_id_2 bigint,
transfer_poll_message_id_3 bigint,
transfer_repo_id text,
transfer_client_txn_id text,
transfer_server_txn_id text,
transfer_gaining_registrar_id text,
transfer_losing_registrar_id text,
transfer_pending_expiration_time timestamp(6) with time zone,
transfer_request_time timestamp(6) with time zone,
transfer_status text check (transfer_status in ('CLIENT_APPROVED','CLIENT_CANCELLED','CLIENT_REJECTED','PENDING','SERVER_APPROVED','SERVER_CANCELLED')),
voice_phone_extension text,
voice_phone_number text,
primary key (repo_id)
);
create table "ContactHistory" (
contact_repo_id text not null,
history_revision_id bigint not null,
history_by_superuser boolean not null,
history_registrar_id text,
history_modification_time timestamp(6) with time zone not null,
history_reason text,
history_requested_by_registrar boolean,
history_client_transaction_id text,
history_server_transaction_id text,
history_type text not null check (history_type in ('CONTACT_CREATE','CONTACT_DELETE','CONTACT_DELETE_FAILURE','CONTACT_PENDING_DELETE','CONTACT_TRANSFER_APPROVE','CONTACT_TRANSFER_CANCEL','CONTACT_TRANSFER_REJECT','CONTACT_TRANSFER_REQUEST','CONTACT_UPDATE','DOMAIN_ALLOCATE','DOMAIN_AUTORENEW','DOMAIN_CREATE','DOMAIN_DELETE','DOMAIN_RENEW','DOMAIN_RESTORE','DOMAIN_TRANSFER_APPROVE','DOMAIN_TRANSFER_CANCEL','DOMAIN_TRANSFER_REJECT','DOMAIN_TRANSFER_REQUEST','DOMAIN_UPDATE','HOST_CREATE','HOST_DELETE','HOST_DELETE_FAILURE','HOST_PENDING_DELETE','HOST_UPDATE','RDE_IMPORT','SYNTHETIC')),
history_xml_bytes bytea,
auth_info_repo_id text,
auth_info_value text,
contact_id text,
disclose_types_addr text[],
disclose_show_email boolean,
disclose_show_fax boolean,
disclose_mode_flag boolean,
disclose_types_name text[],
disclose_types_org text[],
disclose_show_voice boolean,
email text,
fax_phone_extension text,
fax_phone_number text,
addr_i18n_city text,
addr_i18n_country_code text,
addr_i18n_state text,
addr_i18n_street_line1 text,
addr_i18n_street_line2 text,
addr_i18n_street_line3 text,
addr_i18n_zip text,
addr_i18n_name text,
addr_i18n_org text,
addr_i18n_type text check (addr_i18n_type in ('LOCALIZED','INTERNATIONALIZED')),
last_transfer_time timestamp(6) with time zone,
addr_local_city text,
addr_local_country_code text,
addr_local_state text,
addr_local_street_line1 text,
addr_local_street_line2 text,
addr_local_street_line3 text,
addr_local_zip text,
addr_local_name text,
addr_local_org text,
addr_local_type text check (addr_local_type in ('LOCALIZED','INTERNATIONALIZED')),
search_name text,
transfer_history_entry_id bigint,
transfer_poll_message_id_1 bigint,
transfer_poll_message_id_2 bigint,
transfer_poll_message_id_3 bigint,
transfer_repo_id text,
transfer_client_txn_id text,
transfer_server_txn_id text,
transfer_gaining_registrar_id text,
transfer_losing_registrar_id text,
transfer_pending_expiration_time timestamp(6) with time zone,
transfer_request_time timestamp(6) with time zone,
transfer_status text check (transfer_status in ('CLIENT_APPROVED','CLIENT_CANCELLED','CLIENT_REJECTED','PENDING','SERVER_APPROVED','SERVER_CANCELLED')),
voice_phone_extension text,
voice_phone_number text,
creation_registrar_id text,
creation_time timestamp(6) with time zone,
current_sponsor_registrar_id text,
deletion_time timestamp(6) with time zone,
last_epp_update_registrar_id text,
last_epp_update_time timestamp(6) with time zone,
statuses text[],
update_timestamp timestamp(6) with time zone,
primary key (contact_repo_id, history_revision_id)
);
create table "Cursor" (
scope text not null,
type text not null check (type in ('BRDA','RDE_REPORT','RDE_STAGING','RDE_UPLOAD','RDE_UPLOAD_SFTP','RECURRING_BILLING','SYNC_REGISTRAR_SHEET','ICANN_UPLOAD_TX','ICANN_UPLOAD_ACTIVITY')),
@@ -915,33 +781,6 @@
create index idx_console_update_history_modification_time
on "ConsoleUpdateHistory" (modification_time);
create index IDX3y752kr9uh4kh6uig54vemx0l
on "Contact" (creation_time);
create index IDXtm415d6fe1rr35stm33s5mg18
on "Contact" (current_sponsor_registrar_id);
create index IDXn1f711wicdnooa2mqb7g1m55o
on "Contact" (deletion_time);
create index IDXoqd7n4hbx86hvlgkilq75olas
on "Contact" (contact_id);
create index IDX1p3esngcwwu6hstyua6itn6ff
on "Contact" (search_name);
create index IDXo1xdtpij2yryh0skxe9v91sep
on "ContactHistory" (creation_time);
create index IDXhp33wybmb6tbpr1bq7ttwk8je
on "ContactHistory" (history_registrar_id);
create index IDX9q53px6r302ftgisqifmc6put
on "ContactHistory" (history_type);
create index IDXsudwswtwqnfnx2o1hx4s0k0g5
on "ContactHistory" (history_modification_time);
create index IDXhlqqd5uy98cjyos72d81x9j95
on "DelegationSignerData" (domain_repo_id);