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 233a5ec6c..4bf33d7fc 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-08-18 20:43:24.136129 + 2022-08-20 00:16:00.917251 last flyway file - V125__create_package_promotion.sql + V126__drop_autorenew_poll_message_history_id_column_in_domain_table.sql @@ -284,7 +284,7 @@ td.section { generated on - 2022-08-18 20:43:24.136129 + 2022-08-20 00:16:00.917251 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 c4e67cce4..265379578 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,19 +261,19 @@ td.section { generated on - 2022-08-18 20:43:22.295287 + 2022-08-20 00:15:58.476902 last flyway file - V125__create_package_promotion.sql + V126__drop_autorenew_poll_message_history_id_column_in_domain_table.sql

 

 

- + SchemaCrawler_Diagram - + generated by @@ -284,45 +284,37 @@ td.section { generated on - 2022-08-18 20:43:22.295287 + 2022-08-20 00:15:58.476902 allocationtoken_a08ccbef - - + + public.AllocationToken - - + + [table] - + token - - - - text not null - - - update_timestamp - - timestamptz + text not null - allowed_registrar_ids + update_timestamp - _text + timestamptz - allowed_tlds + allowed_registrar_ids @@ -330,47 +322,47 @@ td.section { _text - creation_time + allowed_tlds - timestamptz not null + _text - discount_fraction + creation_time - float8(17, 17) not null + timestamptz not null - discount_premiums + discount_fraction - bool not null + float8(17, 17) not null - discount_years + discount_premiums - int4 not null + bool not null - domain_name + discount_years - text + int4 not null - redemption_domain_repo_id + domain_name @@ -378,46 +370,54 @@ td.section { text - token_status_transitions + redemption_domain_repo_id - "hstore" + text - token_type + token_status_transitions - text + "hstore" - redemption_domain_history_id + token_type - int8 + text - renewal_price_behavior + redemption_domain_history_id - text not null + int8 - registration_behavior + renewal_price_behavior text not null - + + registration_behavior + + + + + text not null + + billingevent_a57d1815 @@ -561,13 +561,13 @@ td.section { billingevent_a57d1815:w->allocationtoken_a08ccbef:e - + - - - - + + + + fk_billing_event_allocation_token @@ -1166,72 +1166,64 @@ td.section { billingrecurrence_5fa2cb01 - - + + public.BillingRecurrence - - + + [table] - + billing_recurrence_id - - - - int8 not null - - - registrar_id - - text not null + int8 not null - domain_history_revision_id + registrar_id - int8 not null + text not null - domain_repo_id + domain_history_revision_id - text not null + int8 not null - event_time + domain_repo_id - timestamptz not null + text not null - flags + event_time - _text + timestamptz not null - reason + flags - text not null + _text - domain_name + reason @@ -1239,120 +1231,120 @@ td.section { text not null - recurrence_end_time + domain_name - timestamptz + text not null - recurrence_time_of_year + recurrence_end_time - text + timestamptz - renewal_price_behavior + recurrence_time_of_year - text not null + text - renewal_price_currency + renewal_price_behavior - text + text not null - renewal_price_amount + renewal_price_currency - numeric(19, 2) + text - recurrence_last_expansion + renewal_price_amount + numeric(19, 2) + + + recurrence_last_expansion + + + + timestamptz not null - + billingevent_a57d1815:w->billingrecurrence_5fa2cb01:e - + - - - - - + + + + + fk_billing_event_cancellation_matching_billing_recurrence_id registrar_6e1503e3 - - + + public.Registrar - - + + [table] - + registrar_id - - - - text not null - - - allowed_tlds - - _text + text not null - billing_account_map + allowed_tlds - "hstore" + _text - block_premium_names + billing_account_map - bool not null + "hstore" - client_certificate + block_premium_names - text + bool not null - client_certificate_hash + client_certificate @@ -1360,31 +1352,31 @@ td.section { text - contacts_require_syncing + client_certificate_hash - bool not null + text - creation_time + contacts_require_syncing - timestamptz not null + bool not null - drive_folder_id + creation_time - text + timestamptz not null - email_address + drive_folder_id @@ -1392,7 +1384,7 @@ td.section { text - failover_client_certificate + email_address @@ -1400,7 +1392,7 @@ td.section { text - failover_client_certificate_hash + failover_client_certificate @@ -1408,7 +1400,7 @@ td.section { text - fax_number + failover_client_certificate_hash @@ -1416,23 +1408,23 @@ td.section { text - iana_identifier + fax_number - int8 + text - icann_referral_email + iana_identifier - text + int8 - i18n_address_city + icann_referral_email @@ -1440,7 +1432,7 @@ td.section { text - i18n_address_country_code + i18n_address_city @@ -1448,7 +1440,7 @@ td.section { text - i18n_address_state + i18n_address_country_code @@ -1456,7 +1448,7 @@ td.section { text - i18n_address_street_line1 + i18n_address_state @@ -1464,7 +1456,7 @@ td.section { text - i18n_address_street_line2 + i18n_address_street_line1 @@ -1472,7 +1464,7 @@ td.section { text - i18n_address_street_line3 + i18n_address_street_line2 @@ -1480,7 +1472,7 @@ td.section { text - i18n_address_zip + i18n_address_street_line3 @@ -1488,39 +1480,39 @@ td.section { text - ip_address_allow_list + i18n_address_zip - _text + text - last_certificate_update_time + ip_address_allow_list - timestamptz + _text - last_update_time + last_certificate_update_time - timestamptz not null + timestamptz - localized_address_city + last_update_time - text + timestamptz not null - localized_address_country_code + localized_address_city @@ -1528,7 +1520,7 @@ td.section { text - localized_address_state + localized_address_country_code @@ -1536,7 +1528,7 @@ td.section { text - localized_address_street_line1 + localized_address_state @@ -1544,7 +1536,7 @@ td.section { text - localized_address_street_line2 + localized_address_street_line1 @@ -1552,7 +1544,7 @@ td.section { text - localized_address_street_line3 + localized_address_street_line2 @@ -1560,7 +1552,7 @@ td.section { text - localized_address_zip + localized_address_street_line3 @@ -1568,7 +1560,7 @@ td.section { text - password_hash + localized_address_zip @@ -1576,7 +1568,7 @@ td.section { text - phone_number + password_hash @@ -1584,7 +1576,7 @@ td.section { text - phone_passcode + phone_number @@ -1592,7 +1584,7 @@ td.section { text - po_number + phone_passcode @@ -1600,39 +1592,39 @@ td.section { text - rdap_base_urls + po_number - _text + text - registrar_name + rdap_base_urls - text not null + _text - registry_lock_allowed + registrar_name - bool not null + text not null - password_salt + registry_lock_allowed - text + bool not null - state + password_salt @@ -1640,23 +1632,23 @@ td.section { text - type + state - text not null + text - url + type - text + text not null - whois_server + url @@ -1664,120 +1656,120 @@ td.section { text - last_expiring_cert_notification_sent_date + whois_server - timestamptz + text - last_expiring_failover_cert_notification_sent_date + last_expiring_cert_notification_sent_date timestamptz - + + last_expiring_failover_cert_notification_sent_date + + + + + timestamptz + + billingevent_a57d1815:w->registrar_6e1503e3:e - + - - - - + + + + fk_billing_event_registrar_id domain_6c51cffa - - + + public.Domain - - + + [table] - + repo_id - - - - text not null - - - creation_registrar_id - text not null - creation_time + creation_registrar_id - timestamptz not null + text not null - current_sponsor_registrar_id + creation_time - text not null + timestamptz not null - deletion_time + current_sponsor_registrar_id - timestamptz + text not null - last_epp_update_registrar_id + deletion_time - text + timestamptz - last_epp_update_time + last_epp_update_registrar_id - timestamptz + text - statuses + last_epp_update_time - _text + timestamptz - auth_info_repo_id + statuses - text + _text - auth_info_value + auth_info_repo_id @@ -1785,7 +1777,7 @@ td.section { text - domain_name + auth_info_value @@ -1793,7 +1785,7 @@ td.section { text - idn_table_name + domain_name @@ -1801,15 +1793,15 @@ td.section { text - last_transfer_time + idn_table_name - timestamptz + text - launch_notice_accepted_time + last_transfer_time @@ -1817,7 +1809,7 @@ td.section { timestamptz - launch_notice_expiration_time + launch_notice_accepted_time @@ -1825,15 +1817,15 @@ td.section { timestamptz - launch_notice_tcn_id + launch_notice_expiration_time - text + timestamptz - launch_notice_validator_id + launch_notice_tcn_id @@ -1841,39 +1833,39 @@ td.section { text - registration_expiration_time + launch_notice_validator_id - timestamptz + text - smd_id + registration_expiration_time - text + timestamptz - subordinate_hosts + smd_id - _text + text - tld + subordinate_hosts - text + _text - admin_contact + tld @@ -1881,7 +1873,7 @@ td.section { text - billing_contact + admin_contact @@ -1889,7 +1881,7 @@ td.section { text - registrant_contact + billing_contact @@ -1897,7 +1889,7 @@ td.section { text - tech_contact + registrant_contact @@ -1905,15 +1897,15 @@ td.section { text - transfer_poll_message_id_1 + tech_contact - int8 + text - transfer_poll_message_id_2 + transfer_poll_message_id_1 @@ -1921,7 +1913,7 @@ td.section { int8 - transfer_billing_cancellation_id + transfer_poll_message_id_2 @@ -1929,7 +1921,7 @@ td.section { int8 - transfer_billing_event_id + transfer_billing_cancellation_id @@ -1937,7 +1929,7 @@ td.section { int8 - transfer_billing_recurrence_id + transfer_billing_event_id @@ -1945,7 +1937,7 @@ td.section { int8 - transfer_autorenew_poll_message_id + transfer_billing_recurrence_id @@ -1953,31 +1945,31 @@ td.section { int8 - transfer_renew_period_unit + transfer_autorenew_poll_message_id - text + int8 - transfer_renew_period_value + transfer_renew_period_unit - int4 + text - transfer_client_txn_id + transfer_renew_period_value - text + int4 - transfer_server_txn_id + transfer_client_txn_id @@ -1985,23 +1977,23 @@ td.section { text - transfer_registration_expiration_time + transfer_server_txn_id - timestamptz + text - transfer_gaining_registrar_id + transfer_registration_expiration_time - text + timestamptz - transfer_losing_registrar_id + transfer_gaining_registrar_id @@ -2009,15 +2001,15 @@ td.section { text - transfer_pending_expiration_time + transfer_losing_registrar_id - timestamptz + text - transfer_request_time + transfer_pending_expiration_time @@ -2025,31 +2017,31 @@ td.section { timestamptz - transfer_status + transfer_request_time - text + timestamptz - update_timestamp + transfer_status - timestamptz + text - billing_recurrence_id + update_timestamp - int8 + timestamptz - autorenew_poll_message_id + billing_recurrence_id @@ -2057,7 +2049,7 @@ td.section { int8 - deletion_poll_message_id + autorenew_poll_message_id @@ -2065,20 +2057,20 @@ td.section { int8 - autorenew_end_time + deletion_poll_message_id - timestamptz + int8 - autorenew_poll_message_history_id + autorenew_end_time - int8 + timestamptz transfer_autorenew_poll_message_history_id @@ -2128,26 +2120,26 @@ td.section { text - + domain_6c51cffa:w->allocationtoken_a08ccbef:e - + - - - - + + + + fk_domain_current_package_token domain_6c51cffa:w->billingevent_a57d1815:e - - - + + + @@ -2158,72 +2150,64 @@ td.section { billingcancellation_6eedf614 - - + + public.BillingCancellation - - + + [table] - + billing_cancellation_id - - - - int8 not null - - - registrar_id - - text not null + int8 not null - domain_history_revision_id + registrar_id - int8 not null + text not null - domain_repo_id + domain_history_revision_id - text not null + int8 not null - event_time + domain_repo_id - timestamptz not null + text not null - flags + event_time - _text + timestamptz not null - reason + flags - text not null + _text - domain_name + reason @@ -2231,154 +2215,154 @@ td.section { text not null - billing_time + domain_name - timestamptz + text not null - billing_event_id + billing_time - int8 + timestamptz - billing_recurrence_id + billing_event_id int8 - + + billing_recurrence_id + + + + + int8 + + 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_transfer_billing_recurrence_id contact_8de8cb16 - - + + public.Contact - - + + [table] - + repo_id - - - - text not null - - - creation_registrar_id - text not null - creation_time + creation_registrar_id - timestamptz not null + text not null - current_sponsor_registrar_id + creation_time - text not null + timestamptz not null - deletion_time + current_sponsor_registrar_id - timestamptz + text not null - last_epp_update_registrar_id + deletion_time - text + timestamptz - last_epp_update_time + last_epp_update_registrar_id - timestamptz + text - statuses + last_epp_update_time - _text + timestamptz - auth_info_repo_id + statuses - text + _text - auth_info_value + auth_info_repo_id @@ -2386,7 +2370,7 @@ td.section { text - contact_id + auth_info_value @@ -2394,23 +2378,23 @@ td.section { text - disclose_types_addr + contact_id - _text + text - disclose_show_email + disclose_types_addr - bool + _text - disclose_show_fax + disclose_show_email @@ -2418,7 +2402,7 @@ td.section { bool - disclose_mode_flag + disclose_show_fax @@ -2426,15 +2410,15 @@ td.section { bool - disclose_types_name + disclose_mode_flag - _text + bool - disclose_types_org + disclose_types_name @@ -2442,23 +2426,23 @@ td.section { _text - disclose_show_voice + disclose_types_org - bool + _text - email + disclose_show_voice - text + bool - fax_phone_extension + email @@ -2466,7 +2450,7 @@ td.section { text - fax_phone_number + fax_phone_extension @@ -2474,7 +2458,7 @@ td.section { text - addr_i18n_city + fax_phone_number @@ -2482,7 +2466,7 @@ td.section { text - addr_i18n_country_code + addr_i18n_city @@ -2490,7 +2474,7 @@ td.section { text - addr_i18n_state + addr_i18n_country_code @@ -2498,7 +2482,7 @@ td.section { text - addr_i18n_street_line1 + addr_i18n_state @@ -2506,7 +2490,7 @@ td.section { text - addr_i18n_street_line2 + addr_i18n_street_line1 @@ -2514,7 +2498,7 @@ td.section { text - addr_i18n_street_line3 + addr_i18n_street_line2 @@ -2522,7 +2506,7 @@ td.section { text - addr_i18n_zip + addr_i18n_street_line3 @@ -2530,7 +2514,7 @@ td.section { text - addr_i18n_name + addr_i18n_zip @@ -2538,7 +2522,7 @@ td.section { text - addr_i18n_org + addr_i18n_name @@ -2546,7 +2530,7 @@ td.section { text - addr_i18n_type + addr_i18n_org @@ -2554,23 +2538,23 @@ td.section { text - last_transfer_time + addr_i18n_type - timestamptz + text - addr_local_city + last_transfer_time - text + timestamptz - addr_local_country_code + addr_local_city @@ -2578,7 +2562,7 @@ td.section { text - addr_local_state + addr_local_country_code @@ -2586,7 +2570,7 @@ td.section { text - addr_local_street_line1 + addr_local_state @@ -2594,7 +2578,7 @@ td.section { text - addr_local_street_line2 + addr_local_street_line1 @@ -2602,7 +2586,7 @@ td.section { text - addr_local_street_line3 + addr_local_street_line2 @@ -2610,7 +2594,7 @@ td.section { text - addr_local_zip + addr_local_street_line3 @@ -2618,7 +2602,7 @@ td.section { text - addr_local_name + addr_local_zip @@ -2626,7 +2610,7 @@ td.section { text - addr_local_org + addr_local_name @@ -2634,7 +2618,7 @@ td.section { text - addr_local_type + addr_local_org @@ -2642,7 +2626,7 @@ td.section { text - search_name + addr_local_type @@ -2650,7 +2634,7 @@ td.section { text - voice_phone_extension + search_name @@ -2658,7 +2642,7 @@ td.section { text - voice_phone_number + voice_phone_extension @@ -2666,15 +2650,15 @@ td.section { text - transfer_poll_message_id_1 + voice_phone_number - int8 + text - transfer_poll_message_id_2 + transfer_poll_message_id_1 @@ -2682,15 +2666,15 @@ td.section { int8 - transfer_client_txn_id + transfer_poll_message_id_2 - text + int8 - transfer_server_txn_id + transfer_client_txn_id @@ -2698,7 +2682,7 @@ td.section { text - transfer_gaining_registrar_id + transfer_server_txn_id @@ -2706,7 +2690,7 @@ td.section { text - transfer_losing_registrar_id + transfer_gaining_registrar_id @@ -2714,15 +2698,15 @@ td.section { text - transfer_pending_expiration_time + transfer_losing_registrar_id - timestamptz + text - transfer_request_time + transfer_pending_expiration_time @@ -2730,200 +2714,200 @@ td.section { timestamptz - transfer_status + transfer_request_time - text + timestamptz - update_timestamp + transfer_status - timestamptz + text - transfer_history_entry_id + update_timestamp - int8 + timestamptz - transfer_repo_id + transfer_history_entry_id - text + int8 - transfer_poll_message_id_3 + transfer_repo_id + text + + + transfer_poll_message_id_3 + + + + int8 - + 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 domain_6c51cffa:w->registrar_6e1503e3:e - - - - - - - - + + + + + + + + fk2jc69qyg2tv9hhnmif6oa1cx1 domain_6c51cffa:w->registrar_6e1503e3:e - - - - - - - - + + + + + + + + fk2u3srsfbei272093m3b3xwj23 domain_6c51cffa:w->registrar_6e1503e3:e - - - - - - - - + + + + + + + + fkjc0r9r5y1lfbt4gpbqw4wsuvq domain_6c51cffa:w->registrar_6e1503e3:e - - - - - - - - + + + + + + + + fk_domain_transfer_gaining_registrar_id domain_6c51cffa:w->registrar_6e1503e3:e - - - - - - - - + + + + + + + + fk_domain_transfer_losing_registrar_id tld_f1fa57e2 - - + + public.Tld - - + + [table] - + tld_name - - - - text not null - - - add_grace_period_length - - interval not null + text not null - allowed_fully_qualified_host_names + add_grace_period_length - _text + interval not null - allowed_registrant_contact_ids + allowed_fully_qualified_host_names @@ -2931,15 +2915,15 @@ td.section { _text - anchor_tenant_add_grace_period_length + allowed_registrant_contact_ids - interval not null + _text - auto_renew_grace_period_length + anchor_tenant_add_grace_period_length @@ -2947,7 +2931,7 @@ td.section { interval not null - automatic_transfer_length + auto_renew_grace_period_length @@ -2955,87 +2939,87 @@ td.section { interval not null - claims_period_end + automatic_transfer_length - timestamptz not null + interval not null - create_billing_cost_amount + claims_period_end - numeric(19, 2) + timestamptz not null - create_billing_cost_currency + create_billing_cost_amount - text + numeric(19, 2) - creation_time + create_billing_cost_currency - timestamptz not null + text - currency + creation_time - text not null + timestamptz not null - dns_paused + currency - bool not null + text not null - dns_writers + dns_paused - _text not null + bool not null - drive_folder_id + dns_writers - text + _text not null - eap_fee_schedule + drive_folder_id - "hstore" not null + text - escrow_enabled + eap_fee_schedule - bool not null + "hstore" not null - invoicing_enabled + escrow_enabled @@ -3043,39 +3027,39 @@ td.section { bool not null - lordn_username + invoicing_enabled - text + bool not null - num_dns_publish_locks + lordn_username - int4 not null + text - pending_delete_length + num_dns_publish_locks - interval not null + int4 not null - premium_list_name + pending_delete_length - text + interval not null - pricing_engine_class_name + premium_list_name @@ -3083,71 +3067,71 @@ td.section { text - redemption_grace_period_length + pricing_engine_class_name - interval not null + text - registry_lock_or_unlock_cost_amount + redemption_grace_period_length - numeric(19, 2) + interval not null - registry_lock_or_unlock_cost_currency + registry_lock_or_unlock_cost_amount - text + numeric(19, 2) - renew_billing_cost_transitions + registry_lock_or_unlock_cost_currency - "hstore" not null + text - renew_grace_period_length + renew_billing_cost_transitions - interval not null + "hstore" not null - reserved_list_names + renew_grace_period_length - _text + interval not null - restore_billing_cost_amount + reserved_list_names - numeric(19, 2) + _text - restore_billing_cost_currency + restore_billing_cost_amount - text + numeric(19, 2) - roid_suffix + restore_billing_cost_currency @@ -3155,39 +3139,39 @@ td.section { text - server_status_change_billing_cost_amount + roid_suffix - numeric(19, 2) + text - server_status_change_billing_cost_currency + server_status_change_billing_cost_amount - text + numeric(19, 2) - tld_state_transitions + server_status_change_billing_cost_currency - "hstore" not null + text - tld_type + tld_state_transitions - text not null + "hstore" not null - tld_unicode + tld_type @@ -3195,72 +3179,80 @@ td.section { text not null - transfer_grace_period_length + tld_unicode + text not null + + + transfer_grace_period_length + + + + interval not null - + domain_6c51cffa:w->tld_f1fa57e2:e - - - - - - - - + + + + + + + + fk_domain_tld domainhistory_a54cc226:w->allocationtoken_a08ccbef:e - - - - - - - - + + + + + + + + fk_domain_history_current_package_token domainhistory_a54cc226:w->domain_6c51cffa:e - + - - - - + + + + fk_domain_history_domain_repo_id domainhistory_a54cc226:w->registrar_6e1503e3:e - - - - - - - - + + + + + + + + fk_domain_history_registrar_id billingcancellation_6eedf614:w->billingevent_a57d1815:e - - - + + + @@ -3271,22 +3263,22 @@ td.section { billingcancellation_6eedf614:w->domainhistory_a54cc226:e - - - + + + - + fk_billing_cancellation_domain_history billingcancellation_6eedf614:w->domainhistory_a54cc226:e - - - + + + @@ -3297,27 +3289,27 @@ td.section { billingcancellation_6eedf614:w->billingrecurrence_5fa2cb01:e - - - - - - - - + + + + + + + + fk_billing_cancellation_billing_recurrence_id billingcancellation_6eedf614:w->registrar_6e1503e3:e - - - - - - - - + + + + + + + + fk_billing_cancellation_registrar_id @@ -3404,1065 +3396,1065 @@ td.section { graceperiod_cd3b2e8f:w->domain_6c51cffa:e - + - - - - + + + + fk_grace_period_domain_repo_id graceperiod_cd3b2e8f:w->billingrecurrence_5fa2cb01:e - + - - - - - + + + + + fk_grace_period_billing_recurrence_id graceperiod_cd3b2e8f:w->registrar_6e1503e3:e - + - - - - + + + + fk_grace_period_registrar_id billingrecurrence_5fa2cb01:w->domainhistory_a54cc226:e - - - + + + - + fk_billing_recurrence_domain_history billingrecurrence_5fa2cb01:w->domainhistory_a54cc226:e - - - + + + - + fk_billing_recurrence_domain_history billingrecurrence_5fa2cb01:w->registrar_6e1503e3:e - - - - - - - - + + + + + + + + fk_billing_recurrence_registrar_id claimsentry_105da9f1 - - + + public.ClaimsEntry - - + + [table] - + revision_id - + - + int8 not null - + claim_key - + - + text not null - + domain_label - + - + text not null - + claimslist_3d49bc2b - - + + public.ClaimsList - - + + [table] - + revision_id - + - + bigserial not null - + - + auto-incremented - + creation_timestamp - + - + timestamptz not null - + tmdb_generation_time - + - + timestamptz not null - + claimsentry_105da9f1:w->claimslist_3d49bc2b:e - - - - - - - - + + + + + + + + fk6sc6at5hedffc0nhdcab6ivuq contact_8de8cb16:w->registrar_6e1503e3:e - - - - - - - - + + + + + + + + fk1sfyj7o7954prbn1exk7lpnoe contact_8de8cb16:w->registrar_6e1503e3:e - - - - - - - - + + + + + + + + fk93c185fx7chn68uv7nl6uv2s0 contact_8de8cb16:w->registrar_6e1503e3:e - - - - - - - - + + + + + + + + fkmb7tdiv85863134w1wogtxrb2 contact_8de8cb16:w->registrar_6e1503e3:e - - - - - - - - + + + + + + + + fk_contact_transfer_gaining_registrar_id contact_8de8cb16:w->registrar_6e1503e3:e - - - - - - - - + + + + + + + + fk_contact_transfer_losing_registrar_id contacthistory_d2964f8a - - + + public.ContactHistory - - + + [table] - + history_revision_id - + - + int8 not null - + history_by_superuser - + - + bool not null - + history_registrar_id - + - + text - + history_modification_time - + - + timestamptz not null - + history_reason - + - + text - + history_requested_by_registrar - + - + bool - + history_client_transaction_id - + - + text - + history_server_transaction_id - + - + text - + history_type - + - + text not null - + history_xml_bytes - + - + bytea - + auth_info_repo_id - + - + text - + auth_info_value - + - + text - + contact_id - + - + text - + disclose_types_addr - + - + _text - + disclose_show_email - + - + bool - + disclose_show_fax - + - + bool - + disclose_mode_flag - + - + bool - + disclose_types_name - + - + _text - + disclose_types_org - + - + _text - + disclose_show_voice - + - + bool - + email - + - + text - + fax_phone_extension - + - + text - + fax_phone_number - + - + text - + addr_i18n_city - + - + text - + addr_i18n_country_code - + - + text - + addr_i18n_state - + - + text - + addr_i18n_street_line1 - + - + text - + addr_i18n_street_line2 - + - + text - + addr_i18n_street_line3 - + - + text - + addr_i18n_zip - + - + text - + addr_i18n_name - + - + text - + addr_i18n_org - + - + text - + addr_i18n_type - + - + text - + last_transfer_time - + - + timestamptz - + addr_local_city - + - + text - + addr_local_country_code - + - + text - + addr_local_state - + - + text - + addr_local_street_line1 - + - + text - + addr_local_street_line2 - + - + text - + addr_local_street_line3 - + - + text - + addr_local_zip - + - + text - + addr_local_name - + - + text - + addr_local_org - + - + text - + addr_local_type - + - + text - + search_name - + - + text - + transfer_poll_message_id_1 - + - + int8 - + transfer_poll_message_id_2 - + - + int8 - + transfer_client_txn_id - + - + text - + transfer_server_txn_id - + - + text - + transfer_gaining_registrar_id - + - + text - + transfer_losing_registrar_id - + - + text - + transfer_pending_expiration_time - + - + timestamptz - + transfer_request_time - + - + timestamptz - + transfer_status - + - + text - + voice_phone_extension - + - + text - + voice_phone_number - + - + text - + creation_registrar_id - + - + text - + creation_time - + - + timestamptz - + current_sponsor_registrar_id - + - + text - + deletion_time - + - + timestamptz - + last_epp_update_registrar_id - + - + text - + last_epp_update_time - + - + timestamptz - + statuses - + - + _text - + contact_repo_id - + - + text not null - + update_timestamp - + - + timestamptz - + transfer_history_entry_id - + - + int8 - + transfer_repo_id - + - + text - + transfer_poll_message_id_3 - + - + int8 - + contacthistory_d2964f8a:w->contact_8de8cb16:e - - - - - - - - + + + + + + + + fk_contact_history_contact_repo_id contacthistory_d2964f8a:w->registrar_6e1503e3:e - - - - - - - - + + + + + + + + fk_contact_history_registrar_id pollmessage_614a523e - - + + public.PollMessage - - + + [table] - + type - + - + text not null - + poll_message_id - + - + int8 not null - + registrar_id - + - + text not null - + contact_repo_id - + - + text - + contact_history_revision_id - + - + int8 - + domain_repo_id - + - + text - + domain_history_revision_id - + - + int8 - + event_time - + - + timestamptz not null - + host_repo_id - + - + text - + host_history_revision_id - + - + int8 - + message - + - + text - + transfer_response_contact_id - + - + text - + transfer_response_domain_expiration_time - + - + timestamptz - + transfer_response_domain_name - + - + text - + pending_action_response_action_result - + - + bool - + pending_action_response_name_or_id - + - + text - + pending_action_response_processed_date - + - + timestamptz - + pending_action_response_client_txn_id - + - + text - + pending_action_response_server_txn_id - + - + text - + transfer_response_gaining_registrar_id - + - + text - + transfer_response_losing_registrar_id - + - + text - + transfer_response_pending_transfer_expiration_time - + - + timestamptz - + transfer_response_transfer_request_time - + - + timestamptz - + transfer_response_transfer_status - + - + text - + autorenew_end_time - + - + timestamptz - + autorenew_domain_name - + - + text - + transfer_response_host_id - + - + text - + pollmessage_614a523e:w->domain_6c51cffa:e - - - - - - - - + + + + + + + + fk_poll_message_domain_repo_id pollmessage_614a523e:w->domainhistory_a54cc226:e - - - + + + @@ -4473,718 +4465,718 @@ td.section { pollmessage_614a523e:w->domainhistory_a54cc226:e - - - + + + - + fk_poll_message_domain_history pollmessage_614a523e:w->contact_8de8cb16:e - - - - - - - - + + + + + + + + fk_poll_message_contact_repo_id pollmessage_614a523e:w->contacthistory_d2964f8a:e - - - - - - - - + + + + + + + + fk_poll_message_contact_history pollmessage_614a523e:w->contacthistory_d2964f8a:e - - - - - - - - + + + + + + + + fk_poll_message_contact_history host_f21b78de - - + + public.Host - - + + [table] - + repo_id - + - + text not null - + creation_registrar_id - + - + text - + creation_time - + - + timestamptz - + current_sponsor_registrar_id - + - + text - + deletion_time - + - + timestamptz - + last_epp_update_registrar_id - + - + text - + last_epp_update_time - + - + timestamptz - + statuses - + - + _text - + host_name - + - + text - + last_superordinate_change - + - + timestamptz - + last_transfer_time - + - + timestamptz - + superordinate_domain - + - + text - + inet_addresses - + - + _text - + update_timestamp - + - + timestamptz - + transfer_poll_message_id_3 - + - + int8 - + pollmessage_614a523e:w->host_f21b78de:e - - - - - - - - + + + + + + + + fk_poll_message_host_repo_id hosthistory_56210c2 - - + + public.HostHistory - - + + [table] - + history_revision_id - + - + int8 not null - + history_by_superuser - + - + bool not null - + history_registrar_id - + - + text not null - + history_modification_time - + - + timestamptz not null - + history_reason - + - + text - + history_requested_by_registrar - + - + bool - + history_client_transaction_id - + - + text - + history_server_transaction_id - + - + text - + history_type - + - + text not null - + history_xml_bytes - + - + bytea - + host_name - + - + text - + inet_addresses - + - + _text - + last_superordinate_change - + - + timestamptz - + last_transfer_time - + - + timestamptz - + superordinate_domain - + - + text - + creation_registrar_id - + - + text - + creation_time - + - + timestamptz - + current_sponsor_registrar_id - + - + text - + deletion_time - + - + timestamptz - + last_epp_update_registrar_id - + - + text - + last_epp_update_time - + - + timestamptz - + statuses - + - + _text - + host_repo_id - + - + text not null - + update_timestamp - + - + timestamptz - + transfer_poll_message_id_3 - + - + int8 - + pollmessage_614a523e:w->hosthistory_56210c2:e - - - - - - - - + + + + + + + + fk_poll_message_host_history pollmessage_614a523e:w->hosthistory_56210c2:e - - - - - - - - + + + + + + + + fk_poll_message_host_history pollmessage_614a523e:w->registrar_6e1503e3:e - - - - - - - - + + + + + + + + fk_poll_message_registrar_id pollmessage_614a523e:w->registrar_6e1503e3:e - - - - - - - - + + + + + + + + fk_poll_message_transfer_response_gaining_registrar_id pollmessage_614a523e:w->registrar_6e1503e3:e - - - - - - - + + + + + + + fk_poll_message_transfer_response_losing_registrar_id cursor_6af40e8c - - + + public."Cursor" - - + + [table] - + "scope" - + - + text not null - + type - + - + text not null - + cursor_time - + - + timestamptz not null - + last_update_time - + - + timestamptz not null - + databasemigrationstateschedule_22edefab - - + + public.DatabaseMigrationStateSchedule - - + + [table] - + id - + - + int8 not null - + migration_transitions - + - + "hstore" - + delegationsignerdata_e542a872 - - + + public.DelegationSignerData - - + + [table] - + domain_repo_id - + - + text not null - + key_tag - + - + int4 not null - + algorithm - + - + int4 not null - + digest - + - + bytea not null - + digest_type - + - + int4 not null - + delegationsignerdata_e542a872:w->domain_6c51cffa:e - - - - - - - - + + + + + + + + fktr24j9v14ph2mfuw2gsmt12kq domainhost_1ea127c2 - - + + public.DomainHost - - + + [table] - + domain_repo_id - + - + text not null - + host_repo_id - + - + text - + domainhost_1ea127c2:w->domain_6c51cffa:e - - - - - - - - + + + + + + + + fkfmi7bdink53swivs390m2btxg domainhost_1ea127c2:w->host_f21b78de:e - - - - - - - - + + + + + + + + fk_domainhost_host_valid host_f21b78de:w->domain_6c51cffa:e - - - - - - - - + + + + + + + + fk_host_superordinate_domain host_f21b78de:w->registrar_6e1503e3:e - - - - - - - - + + + + + + + + fk_host_creation_registrar_id host_f21b78de:w->registrar_6e1503e3:e - - - - - - - - + + + + + + + + fk_host_current_sponsor_registrar_id host_f21b78de:w->registrar_6e1503e3:e - - - - - - - - + + + + + + + + fk_host_last_epp_update_registrar_id @@ -5445,13 +5437,13 @@ td.section { domaintransactionrecord_6e77ff61:w->tld_f1fa57e2:e - + - - - - + + + + fk_domain_transaction_record_tld @@ -5568,315 +5560,315 @@ td.section { hosthistory_56210c2:w->host_f21b78de:e - - - - - - - - + + + + + + + + fk_hosthistory_host hosthistory_56210c2:w->registrar_6e1503e3:e - - - - - - - - + + + + + + + + fk_history_registrar_id lock_f21d4861 - - + + public.Lock - - + + [table] - + resource_name - + - + text not null - + "scope" - + - + text not null - + acquired_time - + - + timestamptz not null - + expiration_time - + - + timestamptz not null - + request_log_id - + - + text not null - + packagepromotion_56aa33 - - + + public.PackagePromotion - - + + [table] - + package_promotion_id - + - + int8 not null - + last_notification_sent - + - + timestamptz - + max_creates - + - + int4 not null - + max_domains - + - + int4 not null - + next_billing_date - + - + timestamptz not null - + package_price_amount - + - + numeric(19, 2) not null - + package_price_currency - + - + text not null - + token - + - + text not null - + premiumentry_b0060b91 - - + + public.PremiumEntry - - + + [table] - + revision_id - + - + int8 not null - + price - + - + numeric(19, 2) not null - + domain_label - + - + text not null - + premiumlist_7c3ea68b - - + + public.PremiumList - - + + [table] - + revision_id - + - + bigserial not null - + - + auto-incremented - + creation_timestamp - + - + timestamptz - + name - + - + text not null - + bloom_filter - + - + bytea not null - + currency - + - + text not null - + premiumentry_b0060b91:w->premiumlist_7c3ea68b:e - - - - - - - - + + + + + + + + fko0gw90lpo1tuee56l0nb6y6g5 rderevision_83396864 - - + + public.RdeRevision - - + + [table] - + tld - + - + text not null - + mode - + - + text not null - + "date" - + - + date not null - + update_timestamp - + - + timestamptz - + revision - + - + int4 not null - + registrarpoc_ab47054d @@ -6004,567 +5996,567 @@ td.section { registrarpoc_ab47054d:w->registrar_6e1503e3:e - + - - - - + + + + fk_registrar_poc_registrar_id registrylock_ac88663e - - + + public.RegistryLock - - + + [table] - + revision_id - + - + bigserial not null - + - + auto-incremented - + lock_completion_time - + - + timestamptz - + lock_request_time - + - + timestamptz not null - + domain_name - + - + text not null - + is_superuser - + - + bool not null - + registrar_id - + - + text not null - + registrar_poc_id - + - + text - + repo_id - + - + text not null - + verification_code - + - + text not null - + unlock_request_time - + - + timestamptz - + unlock_completion_time - + - + timestamptz - + last_update_time - + - + timestamptz not null - + relock_revision_id - + - + int8 - + relock_duration - + - + interval - + registrylock_ac88663e:w->registrylock_ac88663e:e - - - - - - - - + + + + + + + + fk2lhcwpxlnqijr96irylrh1707 reservedentry_1a7b8520 - - + + public.ReservedEntry - - + + [table] - + revision_id - + - + int8 not null - + comment - + - + text - + reservation_type - + - + int4 not null - + domain_label - + - + text not null - + reservedlist_b97c3f1c - - + + public.ReservedList - - + + [table] - + revision_id - + - + bigserial not null - + - + auto-incremented - + creation_timestamp - + - + timestamptz not null - + name - + - + text not null - + should_publish - + - + bool not null - + reservedentry_1a7b8520:w->reservedlist_b97c3f1c:e - - - - - - - - + + + + + + + + fkgq03rk0bt1hb915dnyvd3vnfc serversecret_6cc90f09 - - + + public.ServerSecret - - + + [table] - + secret - + - + uuid not null - + id - + - + int8 not null - + signedmarkrevocationentry_99c39721 - - + + public.SignedMarkRevocationEntry - - + + [table] - + revision_id - + - + int8 not null - + revocation_time - + - + timestamptz not null - + smd_id - + - + text not null - + signedmarkrevocationlist_c5d968fb - - + + public.SignedMarkRevocationList - - + + [table] - + revision_id - + - + bigserial not null - + - + auto-incremented - + creation_time - + - + timestamptz - + signedmarkrevocationentry_99c39721:w->signedmarkrevocationlist_c5d968fb:e - - - - - - - - + + + + + + + + fk5ivlhvs3121yx2li5tqh54u4 spec11threatmatch_a61228a6 - - + + public.Spec11ThreatMatch - - + + [table] - + id - + - + bigserial not null - + - + auto-incremented - + check_date - + - + date not null - + domain_name - + - + text not null - + domain_repo_id - + - + text not null - + registrar_id - + - + text not null - + threat_types - + - + _text not null - + tld - + - + text not null - + tmchcrl_d282355 - - + + public.TmchCrl - - + + [table] - + certificate_revocations - + - + text not null - + update_timestamp - + - + timestamptz not null - + url - + - + text not null - + id - + - + int8 not null - + user_f2216f01 - - + + public."User" - - + + [table] - + id - + - + int8 not null - + email_address - + - + text not null - + gaia_id - + - + text not null - + registry_lock_password_hash - + - + text - + registry_lock_password_salt - + - + text - + global_role - + - + text not null - + is_admin - + - + bool not null - + registrar_roles - + - + "hstore" not null - +
@@ -9301,11 +9293,6 @@ td.section { autorenew_end_time timestamptz - - - autorenew_poll_message_history_id - int8 - transfer_autorenew_poll_message_history_id diff --git a/db/src/main/resources/sql/flyway.txt b/db/src/main/resources/sql/flyway.txt index 5b868b3c2..b6b4347cd 100644 --- a/db/src/main/resources/sql/flyway.txt +++ b/db/src/main/resources/sql/flyway.txt @@ -123,3 +123,4 @@ V122__add_current_package_token_to_domain.sql V123__drop_unused_columns_in_billing_cancellation_table.sql V124__add_console_user.sql V125__create_package_promotion.sql +V126__drop_autorenew_poll_message_history_id_column_in_domain_table.sql diff --git a/db/src/main/resources/sql/flyway/V126__drop_autorenew_poll_message_history_id_column_in_domain_table.sql b/db/src/main/resources/sql/flyway/V126__drop_autorenew_poll_message_history_id_column_in_domain_table.sql new file mode 100644 index 000000000..d718122d3 --- /dev/null +++ b/db/src/main/resources/sql/flyway/V126__drop_autorenew_poll_message_history_id_column_in_domain_table.sql @@ -0,0 +1,15 @@ +-- 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 "Domain" DROP COLUMN autorenew_poll_message_history_id; diff --git a/db/src/main/resources/sql/schema/nomulus.golden.sql b/db/src/main/resources/sql/schema/nomulus.golden.sql index ef0019527..63cacb079 100644 --- a/db/src/main/resources/sql/schema/nomulus.golden.sql +++ b/db/src/main/resources/sql/schema/nomulus.golden.sql @@ -391,7 +391,6 @@ CREATE TABLE public."Domain" ( autorenew_poll_message_id bigint, deletion_poll_message_id bigint, autorenew_end_time timestamp with time zone, - autorenew_poll_message_history_id bigint, transfer_autorenew_poll_message_history_id bigint, transfer_history_entry_id bigint, transfer_repo_id text,