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 fa225f68f..b306d592b 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 - 2025-10-28 16:31:44 + 2025-11-14 20:23:12 last flyway file - V217__drop_contact_fks_pollmessage.sql + V218__tld_drop_allowedregistrantcontactids.sql @@ -273,7 +273,7 @@ td.section {

 

- SchemaCrawler_Diagram generated by SchemaCrawler 16.27.1 generated on 2025-10-28 16:31:44 + SchemaCrawler_Diagram generated by SchemaCrawler 16.27.1 generated on 2025-11-14 20:23:12 allocationtoken_a08ccbef public."AllocationToken" [table] token text not null domain_name text redemption_domain_repo_id text token_type text 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 54eb836cf..d80020721 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 - 2025-10-28 16:31:41 + 2025-11-14 20:23:09
last flyway file - V217__drop_contact_fks_pollmessage.sql + V218__tld_drop_allowedregistrantcontactids.sql
@@ -273,7 +273,7 @@ td.section {

 

- SchemaCrawler_Diagram generated by SchemaCrawler 16.27.1 generated on 2025-10-28 16:31:41 + SchemaCrawler_Diagram generated by SchemaCrawler 16.27.1 generated on 2025-11-14 20:23:09 allocationtoken_a08ccbef public."AllocationToken" [table] token text not null update_timestamp timestamptz allowed_registrar_ids _text allowed_tlds _text creation_time timestamptz not null discount_fraction float8(17, 17) not null discount_premiums bool not null discount_years int4 not null domain_name text redemption_domain_repo_id text token_status_transitions hstore token_type text redemption_domain_history_id int8 renewal_price_behavior text not null registration_behavior text not null allowed_epp_actions _text renewal_price_amount numeric(19, 2) renewal_price_currency text discount_price_amount numeric(19, 2) discount_price_currency text @@ -307,39 +307,39 @@ td.section { - domain_6c51cffa:w->allocationtoken_a08ccbef:e fk_domain_current_package_token + domain_6c51cffa:w->allocationtoken_a08ccbef:e fk_domain_current_package_token - domain_6c51cffa:w->billingevent_a57d1815:e fk_domain_transfer_billing_event_id + domain_6c51cffa:w->billingevent_a57d1815:e fk_domain_transfer_billing_event_id - billingcancellation_6eedf614 public."BillingCancellation" [table] billing_cancellation_id int8 not null registrar_id text not null domain_history_revision_id int8 not null domain_repo_id text not null event_time timestamptz not null flags _text reason text not null domain_name text not null billing_time timestamptz billing_event_id int8 billing_recurrence_id int8 + billingcancellation_6eedf614 public."BillingCancellation" [table] billing_cancellation_id int8 not null registrar_id text not null domain_history_revision_id int8 not null domain_repo_id text not null event_time timestamptz not null flags _text reason text not null domain_name text not null billing_time timestamptz billing_event_id int8 billing_recurrence_id int8 - domain_6c51cffa:w->billingcancellation_6eedf614:e fk_domain_transfer_billing_cancellation_id + domain_6c51cffa:w->billingcancellation_6eedf614:e fk_domain_transfer_billing_cancellation_id - domain_6c51cffa:w->billingrecurrence_5fa2cb01:e fk_domain_billing_recurrence_id + domain_6c51cffa:w->billingrecurrence_5fa2cb01:e fk_domain_billing_recurrence_id - domain_6c51cffa:w->billingrecurrence_5fa2cb01:e fk_domain_transfer_billing_recurrence_id + domain_6c51cffa:w->billingrecurrence_5fa2cb01:e fk_domain_transfer_billing_recurrence_id - domain_6c51cffa:w->registrar_6e1503e3:e fk2jc69qyg2tv9hhnmif6oa1cx1 + domain_6c51cffa:w->registrar_6e1503e3:e fk2jc69qyg2tv9hhnmif6oa1cx1 - domain_6c51cffa:w->registrar_6e1503e3:e fk2u3srsfbei272093m3b3xwj23 + domain_6c51cffa:w->registrar_6e1503e3:e fk2u3srsfbei272093m3b3xwj23 - domain_6c51cffa:w->registrar_6e1503e3:e fkjc0r9r5y1lfbt4gpbqw4wsuvq + domain_6c51cffa:w->registrar_6e1503e3:e fkjc0r9r5y1lfbt4gpbqw4wsuvq @@ -351,11 +351,11 @@ td.section { - tld_f1fa57e2 public."Tld" [table] tld_name text not null add_grace_period_length interval not null allowed_fully_qualified_host_names _text allowed_registrant_contact_ids _text anchor_tenant_add_grace_period_length interval not null auto_renew_grace_period_length interval not null automatic_transfer_length interval not null claims_period_end timestamptz not null creation_time timestamptz not null currency text not null dns_paused bool not null dns_writers _text not null drive_folder_id text eap_fee_schedule hstore not null escrow_enabled bool not null invoicing_enabled bool not null lordn_username text num_dns_publish_locks int4 not null pending_delete_length interval not null premium_list_name text pricing_engine_class_name text redemption_grace_period_length interval not null registry_lock_or_unlock_cost_amount numeric(19, 2) registry_lock_or_unlock_cost_currency text renew_billing_cost_transitions hstore not null renew_grace_period_length interval not null reserved_list_names _text restore_billing_cost_amount numeric(19, 2) restore_billing_cost_currency text roid_suffix text server_status_change_billing_cost_amount numeric(19, 2) server_status_change_billing_cost_currency text tld_state_transitions hstore not null tld_type text not null tld_unicode text not null transfer_grace_period_length interval not null default_promo_tokens _text dns_a_plus_aaaa_ttl interval dns_ds_ttl interval dns_ns_ttl interval idn_tables _text breakglass_mode bool not null bsa_enroll_start_time timestamptz create_billing_cost_transitions hstore not null expiry_access_period_enabled bool not null + tld_f1fa57e2 public."Tld" [table] tld_name text not null add_grace_period_length interval not null allowed_fully_qualified_host_names _text anchor_tenant_add_grace_period_length interval not null auto_renew_grace_period_length interval not null automatic_transfer_length interval not null claims_period_end timestamptz not null creation_time timestamptz not null currency text not null dns_paused bool not null dns_writers _text not null drive_folder_id text eap_fee_schedule hstore not null escrow_enabled bool not null invoicing_enabled bool not null lordn_username text num_dns_publish_locks int4 not null pending_delete_length interval not null premium_list_name text pricing_engine_class_name text redemption_grace_period_length interval not null registry_lock_or_unlock_cost_amount numeric(19, 2) registry_lock_or_unlock_cost_currency text renew_billing_cost_transitions hstore not null renew_grace_period_length interval not null reserved_list_names _text restore_billing_cost_amount numeric(19, 2) restore_billing_cost_currency text roid_suffix text server_status_change_billing_cost_amount numeric(19, 2) server_status_change_billing_cost_currency text tld_state_transitions hstore not null tld_type text not null tld_unicode text not null transfer_grace_period_length interval not null default_promo_tokens _text dns_a_plus_aaaa_ttl interval dns_ds_ttl interval dns_ns_ttl interval idn_tables _text breakglass_mode bool not null bsa_enroll_start_time timestamptz create_billing_cost_transitions hstore not null expiry_access_period_enabled bool not null - domain_6c51cffa:w->tld_f1fa57e2:e fk_domain_tld + domain_6c51cffa:w->tld_f1fa57e2:e fk_domain_tld @@ -363,7 +363,7 @@ td.section { - domainhistory_a54cc226:w->allocationtoken_a08ccbef:e fk_domain_history_current_package_token + domainhistory_a54cc226:w->allocationtoken_a08ccbef:e fk_domain_history_current_package_token @@ -371,19 +371,19 @@ td.section { - domainhistory_a54cc226:w->registrar_6e1503e3:e fk_domain_history_registrar_id + domainhistory_a54cc226:w->registrar_6e1503e3:e fk_domain_history_registrar_id - billingcancellation_6eedf614:w->billingevent_a57d1815:e fk_billing_cancellation_billing_event_id + billingcancellation_6eedf614:w->billingevent_a57d1815:e fk_billing_cancellation_billing_event_id - billingcancellation_6eedf614:w->billingrecurrence_5fa2cb01:e fk_billing_cancellation_billing_recurrence_id + billingcancellation_6eedf614:w->billingrecurrence_5fa2cb01:e fk_billing_cancellation_billing_recurrence_id - billingcancellation_6eedf614:w->registrar_6e1503e3:e fk_billing_cancellation_registrar_id + billingcancellation_6eedf614:w->registrar_6e1503e3:e fk_billing_cancellation_registrar_id @@ -391,7 +391,7 @@ td.section { - graceperiod_cd3b2e8f:w->billingevent_a57d1815:e fk_grace_period_billing_event_id + graceperiod_cd3b2e8f:w->billingevent_a57d1815:e fk_grace_period_billing_event_id @@ -399,7 +399,7 @@ td.section { - graceperiod_cd3b2e8f:w->billingrecurrence_5fa2cb01:e fk_grace_period_billing_recurrence_id + graceperiod_cd3b2e8f:w->billingrecurrence_5fa2cb01:e fk_grace_period_billing_recurrence_id @@ -563,7 +563,7 @@ td.section { - pollmessage_614a523e:w->registrar_6e1503e3:e fk_poll_message_registrar_id + pollmessage_614a523e:w->registrar_6e1503e3:e fk_poll_message_registrar_id @@ -579,23 +579,23 @@ td.section { - domainhistoryhost_9f3f23ee public."DomainHistoryHost" [table] domain_history_history_revision_id int8 not null host_repo_id text domain_history_domain_repo_id text not null + domainhistoryhost_9f3f23ee public."DomainHistoryHost" [table] domain_history_history_revision_id int8 not null host_repo_id text domain_history_domain_repo_id text not null - domainhistoryhost_9f3f23ee:w->domainhistory_a54cc226:e fka9woh3hu8gx5x0vly6bai327n + domainhistoryhost_9f3f23ee:w->domainhistory_a54cc226:e fka9woh3hu8gx5x0vly6bai327n - domainhistoryhost_9f3f23ee:w->domainhistory_a54cc226:e fka9woh3hu8gx5x0vly6bai327n + domainhistoryhost_9f3f23ee:w->domainhistory_a54cc226:e fka9woh3hu8gx5x0vly6bai327n - domaintransactionrecord_6e77ff61 public."DomainTransactionRecord" [table] id bigserial not null auto-incremented report_amount int4 not null report_field text not null reporting_time timestamptz not null tld text not null domain_repo_id text history_revision_id int8 + domaintransactionrecord_6e77ff61 public."DomainTransactionRecord" [table] id bigserial not null auto-incremented report_amount int4 not null report_field text not null reporting_time timestamptz not null tld text not null domain_repo_id text history_revision_id int8 - domaintransactionrecord_6e77ff61:w->tld_f1fa57e2:e fk_domain_transaction_record_tld + domaintransactionrecord_6e77ff61:w->tld_f1fa57e2:e fk_domain_transaction_record_tld @@ -9575,11 +9575,6 @@ td.section { allowed_fully_qualified_host_names _text -
- - allowed_registrant_contact_ids - _text -
anchor_tenant_add_grace_period_length diff --git a/db/src/main/resources/sql/flyway.txt b/db/src/main/resources/sql/flyway.txt index 5f05e28bf..8eff36f9a 100644 --- a/db/src/main/resources/sql/flyway.txt +++ b/db/src/main/resources/sql/flyway.txt @@ -215,3 +215,4 @@ V214__domain_unique_domain_name_active.sql V215__drop_contact_fks_contacthistory.sql V216__drop_contact_fks_domain.sql V217__drop_contact_fks_pollmessage.sql +V218__tld_drop_allowedregistrantcontactids.sql diff --git a/db/src/main/resources/sql/flyway/V218__tld_drop_allowedregistrantcontactids.sql b/db/src/main/resources/sql/flyway/V218__tld_drop_allowedregistrantcontactids.sql new file mode 100644 index 000000000..9d897a5cd --- /dev/null +++ b/db/src/main/resources/sql/flyway/V218__tld_drop_allowedregistrantcontactids.sql @@ -0,0 +1,16 @@ +-- Copyright 2025 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 ONLY "Tld" + DROP COLUMN allowed_registrant_contact_ids; diff --git a/db/src/main/resources/sql/schema/nomulus.golden.sql b/db/src/main/resources/sql/schema/nomulus.golden.sql index 33f0bb50f..b88c8059b 100644 --- a/db/src/main/resources/sql/schema/nomulus.golden.sql +++ b/db/src/main/resources/sql/schema/nomulus.golden.sql @@ -1309,7 +1309,6 @@ CREATE TABLE public."Tld" ( tld_name text NOT NULL, add_grace_period_length interval NOT NULL, allowed_fully_qualified_host_names text[], - allowed_registrant_contact_ids text[], anchor_tenant_add_grace_period_length interval NOT NULL, auto_renew_grace_period_length interval NOT NULL, automatic_transfer_length interval NOT NULL,