Add a third poll message column in TransferData for domain transfers (#974)

Because we don't store serverApproveEntities specifically as a set in
the SQL world, we need to make sure that the entities are all separated
and stored if they exist. For domain transfers, there exist three
separate poll messages (client losing, client gaining, autorenew) so we
need to store and retrieve that one.

Founnd this while converting domain transfer flows to SQL.
This commit is contained in:
gbrodman 2021-02-25 17:22:53 -05:00 committed by GitHub
parent d79a8b1513
commit 5f1ba8bef4
7 changed files with 2497 additions and 2374 deletions

View file

@ -221,7 +221,8 @@ CREATE TABLE public."Contact" (
transfer_status text,
update_timestamp timestamp with time zone,
transfer_history_entry_id bigint,
transfer_repo_id text
transfer_repo_id text,
transfer_poll_message_id_3 bigint
);
@ -296,7 +297,8 @@ CREATE TABLE public."ContactHistory" (
contact_repo_id text NOT NULL,
update_timestamp timestamp with time zone,
transfer_history_entry_id bigint,
transfer_repo_id text
transfer_repo_id text,
transfer_poll_message_id_3 bigint
);
@ -383,7 +385,8 @@ CREATE TABLE public."Domain" (
transfer_autorenew_poll_message_history_id bigint,
transfer_billing_event_history_id bigint,
transfer_history_entry_id bigint,
transfer_repo_id text
transfer_repo_id text,
transfer_poll_message_id_3 bigint
);
@ -473,7 +476,8 @@ CREATE TABLE public."DomainHistory" (
transfer_autorenew_poll_message_history_id bigint,
transfer_billing_event_history_id bigint,
transfer_history_entry_id bigint,
transfer_repo_id text
transfer_repo_id text,
transfer_poll_message_id_3 bigint
);
@ -590,7 +594,8 @@ CREATE TABLE public."Host" (
last_transfer_time timestamp with time zone,
superordinate_domain text,
inet_addresses text[],
update_timestamp timestamp with time zone
update_timestamp timestamp with time zone,
transfer_poll_message_id_3 bigint
);
@ -622,7 +627,8 @@ CREATE TABLE public."HostHistory" (
last_epp_update_time timestamp with time zone,
statuses text[],
host_repo_id text NOT NULL,
update_timestamp timestamp with time zone
update_timestamp timestamp with time zone,
transfer_poll_message_id_3 bigint
);