Restore ofy keys in DomainTransferData (#838)

* Restore ofy keys in DomainTransferData

Restore composite VKeys correctly in DomainTransferData (they were previously
missing their ofy keys).

* Use "AlsoLoad" to populate history ids
This commit is contained in:
Michael Muller 2020-10-15 07:54:47 -04:00 committed by GitHub
parent 4ec7f23e84
commit 3534a146e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 217 additions and 7 deletions

View file

@ -61,3 +61,4 @@ V60__remove_pollmessage_sequence.sql
V61__domain_hist_columns.sql
V62__disable_key_auto_generation_for_history_tables.sql
V63__add_schema_for_ds_data.sql
V64__transfer_history_columns.sql

View file

@ -0,0 +1,21 @@
-- Copyright 2020 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 "Domain" ADD COLUMN transfer_billing_recurrence_history_id int8;
ALTER TABLE "Domain" ADD COLUMN transfer_autorenew_poll_message_history_id int8;
ALTER TABLE "Domain" ADD COLUMN transfer_billing_event_history_id int8;
ALTER TABLE "DomainHistory" ADD COLUMN transfer_billing_recurrence_history_id int8;
ALTER TABLE "DomainHistory" ADD COLUMN transfer_autorenew_poll_message_history_id int8;
ALTER TABLE "DomainHistory" ADD COLUMN transfer_billing_event_history_id int8;

View file

@ -271,8 +271,11 @@
tld text,
transfer_billing_cancellation_id int8,
transfer_billing_recurrence_id int8,
transfer_billing_recurrence_history_id int8,
transfer_autorenew_poll_message_id int8,
transfer_autorenew_poll_message_history_id int8,
transfer_billing_event_id int8,
transfer_billing_event_history_id int8,
transfer_renew_period_unit text,
transfer_renew_period_value int4,
transfer_registration_expiration_time timestamptz,
@ -326,8 +329,11 @@
tld text,
transfer_billing_cancellation_id int8,
transfer_billing_recurrence_id int8,
transfer_billing_recurrence_history_id int8,
transfer_autorenew_poll_message_id int8,
transfer_autorenew_poll_message_history_id int8,
transfer_billing_event_id int8,
transfer_billing_event_history_id int8,
transfer_renew_period_unit text,
transfer_renew_period_value int4,
transfer_registration_expiration_time timestamptz,

View file

@ -369,7 +369,10 @@ CREATE TABLE public."Domain" (
autorenew_end_time timestamp with time zone,
billing_recurrence_history_id bigint,
autorenew_poll_message_history_id bigint,
deletion_poll_message_history_id bigint
deletion_poll_message_history_id bigint,
transfer_billing_recurrence_history_id bigint,
transfer_autorenew_poll_message_history_id bigint,
transfer_billing_event_history_id bigint
);
@ -439,7 +442,10 @@ CREATE TABLE public."DomainHistory" (
history_period_value integer,
billing_recurrence_history_id bigint,
autorenew_poll_message_history_id bigint,
deletion_poll_message_history_id bigint
deletion_poll_message_history_id bigint,
transfer_billing_recurrence_history_id bigint,
transfer_autorenew_poll_message_history_id bigint,
transfer_billing_event_history_id bigint
);