diff --git a/db/src/main/resources/sql/er_diagram/brief_er_diagram.html b/db/src/main/resources/sql/er_diagram/brief_er_diagram.html index 1b8319974..898429879 100644 --- a/db/src/main/resources/sql/er_diagram/brief_er_diagram.html +++ b/db/src/main/resources/sql/er_diagram/brief_er_diagram.html @@ -261,11 +261,11 @@ td.section { generated on - 2021-11-19 21:30:39.304221 + 2021-11-23 20:43:41.968049 last flyway file - V103__creation_time_not_null.sql + V104__add_transfer_response_host_id_to_poll_message.sql @@ -284,7 +284,7 @@ td.section { generated on - 2021-11-19 21:30:39.304221 + 2021-11-23 20:43:41.968049 diff --git a/db/src/main/resources/sql/er_diagram/full_er_diagram.html b/db/src/main/resources/sql/er_diagram/full_er_diagram.html index 3bc438269..681afebca 100644 --- a/db/src/main/resources/sql/er_diagram/full_er_diagram.html +++ b/db/src/main/resources/sql/er_diagram/full_er_diagram.html @@ -261,11 +261,11 @@ td.section { generated on - 2021-11-19 21:30:37.273092 + 2021-11-23 20:43:39.672931 last flyway file - V103__creation_time_not_null.sql + V104__add_transfer_response_host_id_to_poll_message.sql @@ -284,7 +284,7 @@ td.section { generated on - 2021-11-19 21:30:37.273092 + 2021-11-23 20:43:39.672931 @@ -1248,9 +1248,9 @@ td.section { billingevent_a57d1815:w->domainhistory_a54cc226:e - - - + + + @@ -2353,7 +2353,7 @@ td.section { domain_6c51cffa:w->billingevent_a57d1815:e - + @@ -3327,122 +3327,122 @@ td.section { graceperiod_cd3b2e8f - - + + public.GracePeriod - - + + [table] - + grace_period_id - + - + int8 not null - + billing_event_id - + - + int8 - + billing_recurrence_id - + - + int8 - + registrar_id - + - + text not null - + domain_repo_id - + - + text not null - + expiration_time - + - + timestamptz not null - + type - + - + text not null - + billing_event_history_id - + - + int8 - + billing_recurrence_history_id - + - + int8 - + billing_event_domain_repo_id - + - + text - + billing_recurrence_domain_repo_id - + - + text - + graceperiod_cd3b2e8f:w->billingevent_a57d1815:e - - - + + + - + fk_grace_period_billing_event_id graceperiod_cd3b2e8f:w->domain_6c51cffa:e - - - + + + @@ -3453,22 +3453,22 @@ td.section { graceperiod_cd3b2e8f:w->billingrecurrence_5fa2cb01:e - - - + + + - + fk_grace_period_billing_recurrence_id graceperiod_cd3b2e8f:w->registrar_6e1503e3:e - - - + + + @@ -4471,7 +4471,15 @@ td.section { text - + + transfer_response_host_id + + + + + text + + pollmessage_614a523e:w->domain_6c51cffa:e @@ -4527,7 +4535,7 @@ td.section { pollmessage_614a523e:w->domainhistory_a54cc226:e - + @@ -4962,9 +4970,9 @@ td.section { pollmessage_614a523e:w->registrar_6e1503e3:e - - - + + + @@ -11668,6 +11676,11 @@ td.section { autorenew_domain_name text + + + transfer_response_host_id + text + diff --git a/db/src/main/resources/sql/flyway.txt b/db/src/main/resources/sql/flyway.txt index fa4c4669b..f64e6e8a1 100644 --- a/db/src/main/resources/sql/flyway.txt +++ b/db/src/main/resources/sql/flyway.txt @@ -101,3 +101,4 @@ V100__database_migration_schedule.sql V101__domain_add_dns_refresh_request_time.sql V102__add_indexes_to_domain_history_sub_tables.sql V103__creation_time_not_null.sql +V104__add_transfer_response_host_id_to_poll_message.sql diff --git a/db/src/main/resources/sql/flyway/V104__add_transfer_response_host_id_to_poll_message.sql b/db/src/main/resources/sql/flyway/V104__add_transfer_response_host_id_to_poll_message.sql new file mode 100644 index 000000000..79f51b9b3 --- /dev/null +++ b/db/src/main/resources/sql/flyway/V104__add_transfer_response_host_id_to_poll_message.sql @@ -0,0 +1,16 @@ +-- Copyright 2021 The Nomulus Authors. All Rights Reserved. +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. + +ALTER TABLE "PollMessage" + ADD COLUMN IF NOT EXISTS "transfer_response_host_id" text; diff --git a/db/src/main/resources/sql/schema/nomulus.golden.sql b/db/src/main/resources/sql/schema/nomulus.golden.sql index b1a986aa0..d073c1ec6 100644 --- a/db/src/main/resources/sql/schema/nomulus.golden.sql +++ b/db/src/main/resources/sql/schema/nomulus.golden.sql @@ -690,7 +690,8 @@ CREATE TABLE public."PollMessage" ( transfer_response_transfer_request_time timestamp with time zone, transfer_response_transfer_status text, autorenew_end_time timestamp with time zone, - autorenew_domain_name text + autorenew_domain_name text, + transfer_response_host_id text );