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 b51ce354b..47e4e327d 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 - 2022-03-16 18:17:28.401054 + 2022-03-28 20:56:27.57848 last flyway file - V114__add_allocation_token_indexes.sql + V115__add_renewal_columns_to_billing_recurrence.sql @@ -274,19 +274,19 @@ td.section { SchemaCrawler_Diagram - + generated by - + SchemaCrawler 16.10.1 - + generated on - - 2022-03-16 18:17:28.401054 + + 2022-03-28 20:56:27.57848 - + allocationtoken_a08ccbef 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 9be7e8846..5a75f9074 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 - 2022-03-16 18:17:27.007916 + 2022-03-28 20:56:25.532932
last flyway file - V114__add_allocation_token_indexes.sql + V115__add_renewal_columns_to_billing_recurrence.sql
@@ -284,7 +284,7 @@ td.section { generated on
- 2022-03-16 18:17:27.007916 + 2022-03-28 20:56:25.532932 @@ -558,40 +558,64 @@ td.section { billingrecurrence_5fa2cb01 - - + + public.BillingRecurrence - - + + [table] - + billing_recurrence_id + + + + int8 not null + + + registrar_id + + + + + text not null + + + domain_history_revision_id + + + + + int8 not null + + + domain_repo_id + - int8 not null + text not null - registrar_id + event_time - text not null + timestamptz not null - domain_history_revision_id + flags - int8 not null + _text - domain_repo_id + reason @@ -599,65 +623,65 @@ td.section { text not null - event_time + domain_name - timestamptz not null + text not null - flags + recurrence_end_time - _text + timestamptz - reason + recurrence_time_of_year - text not null + text - domain_name + renewal_price_behavior - text not null + text - recurrence_end_time + renewal_price_currency - timestamptz + text - recurrence_time_of_year + renewal_price_amount - text + numeric(19, 2) - + billingevent_a57d1815:w->billingrecurrence_5fa2cb01:e - - - - - - - - + + + + + + + + fk_billing_event_cancellation_matching_billing_recurrence_id @@ -1235,20 +1259,20 @@ td.section {
billingevent_a57d1815:w->domainhistory_a54cc226:e - + - - - - + + + + fk_billing_event_domain_history billingevent_a57d1815:w->domainhistory_a54cc226:e - + @@ -1261,22 +1285,22 @@ td.section { billingevent_a57d1815:w->domainhistory_a54cc226:e - - - - + + + + - - + + fk_billing_event_recurrence_history billingevent_a57d1815:w->domainhistory_a54cc226:e - - - + + + @@ -1675,14 +1699,14 @@ td.section { billingevent_a57d1815:w->registrar_6e1503e3:e - + - + fk_billing_event_registrar_id @@ -1820,26 +1844,26 @@ td.section { billingcancellation_6eedf614:w->billingevent_a57d1815:e - + - + fk_billing_cancellation_billing_event_id billingcancellation_6eedf614:w->billingrecurrence_5fa2cb01:e - + - - - - + + + + fk_billing_cancellation_billing_recurrence_id @@ -2353,13 +2377,13 @@ td.section { domain_6c51cffa:w->billingevent_a57d1815:e - + - - - - + + + + fk_domain_transfer_billing_event_id @@ -2379,26 +2403,26 @@ td.section { domain_6c51cffa:w->billingrecurrence_5fa2cb01:e - + - - - - + + + + fk_domain_billing_recurrence_id domain_6c51cffa:w->billingrecurrence_5fa2cb01:e - + - - - - + + + + fk_domain_transfer_billing_recurrence_id @@ -2881,53 +2905,53 @@ td.section { domain_6c51cffa:w->contact_8de8cb16:e - - - - - - - - + + + + + + + + fk_domain_admin_contact domain_6c51cffa:w->contact_8de8cb16:e - - - - - - - - + + + + + + + + fk_domain_billing_contact domain_6c51cffa:w->contact_8de8cb16:e - - - - - - - - + + + + + + + + fk_domain_registrant_contact domain_6c51cffa:w->contact_8de8cb16:e - - - - + + + + - - - + + + fk_domain_tech_contact @@ -2959,9 +2983,9 @@ td.section { domain_6c51cffa:w->registrar_6e1503e3:e - - - + + + @@ -3440,9 +3464,9 @@ td.section { graceperiod_cd3b2e8f:w->domain_6c51cffa:e - - - + + + @@ -3453,20 +3477,20 @@ td.section { graceperiod_cd3b2e8f:w->billingrecurrence_5fa2cb01:e - - - - - - - - + + + + + + + + fk_grace_period_billing_recurrence_id graceperiod_cd3b2e8f:w->registrar_6e1503e3:e - + @@ -3479,22 +3503,22 @@ td.section { billingrecurrence_5fa2cb01:w->domainhistory_a54cc226:e - - - - - - - + + + + + + + fk_billing_recurrence_domain_history billingrecurrence_5fa2cb01:w->domainhistory_a54cc226:e - - - + + + @@ -3505,14 +3529,14 @@ td.section { billingrecurrence_5fa2cb01:w->registrar_6e1503e3:e - - - + + + - + fk_billing_recurrence_registrar_id @@ -4496,13 +4520,13 @@ td.section { pollmessage_614a523e:w->contact_8de8cb16:e - + - - - - + + + + fk_poll_message_contact_repo_id @@ -4535,7 +4559,7 @@ td.section { pollmessage_614a523e:w->domainhistory_a54cc226:e - + @@ -4970,14 +4994,14 @@ td.section { pollmessage_614a523e:w->registrar_6e1503e3:e - + - - - + + + fk_poll_message_transfer_response_losing_registrar_id @@ -7368,6 +7392,21 @@ td.section { recurrence_time_of_year text +
+ + renewal_price_behavior + text +
+
+ + renewal_price_currency + text +
+
+ + renewal_price_amount + numeric(19, 2) +
diff --git a/db/src/main/resources/sql/flyway.txt b/db/src/main/resources/sql/flyway.txt index 974dd3a39..a84082ea1 100644 --- a/db/src/main/resources/sql/flyway.txt +++ b/db/src/main/resources/sql/flyway.txt @@ -112,3 +112,4 @@ V111__add_billingcancellation_missing_indexes.sql V112__add_billingrecurrence_missing_indexes.sql V113__add_host_missing_indexes.sql V114__add_allocation_token_indexes.sql +V115__add_renewal_columns_to_billing_recurrence.sql diff --git a/db/src/main/resources/sql/flyway/V115__add_renewal_columns_to_billing_recurrence.sql b/db/src/main/resources/sql/flyway/V115__add_renewal_columns_to_billing_recurrence.sql new file mode 100644 index 000000000..2f43f50bc --- /dev/null +++ b/db/src/main/resources/sql/flyway/V115__add_renewal_columns_to_billing_recurrence.sql @@ -0,0 +1,17 @@ +-- Copyright 2022 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 "BillingRecurrence" add column renewal_price_behavior text; +alter table "BillingRecurrence" add column renewal_price_currency text; +alter table "BillingRecurrence" add column renewal_price_amount numeric(19, 2); diff --git a/db/src/main/resources/sql/schema/nomulus.golden.sql b/db/src/main/resources/sql/schema/nomulus.golden.sql index 2cea47a79..25a37da00 100644 --- a/db/src/main/resources/sql/schema/nomulus.golden.sql +++ b/db/src/main/resources/sql/schema/nomulus.golden.sql @@ -116,7 +116,10 @@ CREATE TABLE public."BillingRecurrence" ( reason text NOT NULL, domain_name text NOT NULL, recurrence_end_time timestamp with time zone, - recurrence_time_of_year text + recurrence_time_of_year text, + renewal_price_behavior text, + renewal_price_currency text, + renewal_price_amount numeric(19,2) );