mirror of
https://github.com/google/nomulus
synced 2026-02-13 00:02:04 +00:00
Remove old console history Java classes (#2726)
1. This doesn't remove the SQL tables yet (this is necessary to pass tests and also good practice just in case we need or want to look at history for a little bit) 2. This also removes the Registrar, RegistrarPoc, and User base classes that were only necessary because we were saving copies of those objects in the old history classes.
This commit is contained in:
@@ -134,20 +134,6 @@
|
||||
primary key (revision_id)
|
||||
);
|
||||
|
||||
create table "ConsoleEppActionHistory" (
|
||||
history_revision_id bigint not null,
|
||||
history_method text not null,
|
||||
history_modification_time timestamp(6) with time zone not null,
|
||||
history_request_body text,
|
||||
history_type text not null check (history_type in ('DOMAIN_DELETE','DOMAIN_SUSPEND','DOMAIN_UNSUSPEND','EPP_PASSWORD_UPDATE','REGISTRAR_CREATE','REGISTRAR_SECURITY_UPDATE','REGISTRAR_UPDATE','USER_CREATE','USER_DELETE','USER_UPDATE')),
|
||||
history_url text not null,
|
||||
history_entry_class text not null,
|
||||
repo_id text not null,
|
||||
revision_id bigint,
|
||||
history_acting_user text not null,
|
||||
primary key (history_revision_id)
|
||||
);
|
||||
|
||||
create table "ConsoleUpdateHistory" (
|
||||
revision_id bigint not null,
|
||||
description text,
|
||||
@@ -699,87 +685,6 @@
|
||||
primary key (email_address, registrar_id)
|
||||
);
|
||||
|
||||
create table "RegistrarPocUpdateHistory" (
|
||||
history_revision_id bigint not null,
|
||||
history_method text not null,
|
||||
history_modification_time timestamp(6) with time zone not null,
|
||||
history_request_body text,
|
||||
history_type text not null check (history_type in ('DOMAIN_DELETE','DOMAIN_SUSPEND','DOMAIN_UNSUSPEND','EPP_PASSWORD_UPDATE','REGISTRAR_CREATE','REGISTRAR_SECURITY_UPDATE','REGISTRAR_UPDATE','USER_CREATE','USER_DELETE','USER_UPDATE')),
|
||||
history_url text not null,
|
||||
email_address text not null,
|
||||
registrar_id text not null,
|
||||
allowed_to_set_registry_lock_password boolean not null,
|
||||
fax_number text,
|
||||
name text,
|
||||
phone_number text,
|
||||
registry_lock_email_address text,
|
||||
registry_lock_password_hash text,
|
||||
registry_lock_password_salt text,
|
||||
types text[],
|
||||
visible_in_domain_whois_as_abuse boolean not null,
|
||||
visible_in_whois_as_admin boolean not null,
|
||||
visible_in_whois_as_tech boolean not null,
|
||||
history_acting_user text not null,
|
||||
primary key (history_revision_id)
|
||||
);
|
||||
|
||||
create table "RegistrarUpdateHistory" (
|
||||
history_revision_id bigint not null,
|
||||
history_method text not null,
|
||||
history_modification_time timestamp(6) with time zone not null,
|
||||
history_request_body text,
|
||||
history_type text not null check (history_type in ('DOMAIN_DELETE','DOMAIN_SUSPEND','DOMAIN_UNSUSPEND','EPP_PASSWORD_UPDATE','REGISTRAR_CREATE','REGISTRAR_SECURITY_UPDATE','REGISTRAR_UPDATE','USER_CREATE','USER_DELETE','USER_UPDATE')),
|
||||
history_url text not null,
|
||||
allowed_tlds text[],
|
||||
billing_account_map hstore,
|
||||
block_premium_names boolean not null,
|
||||
client_certificate text,
|
||||
client_certificate_hash text,
|
||||
contacts_require_syncing boolean not null,
|
||||
creation_time timestamp(6) with time zone not null,
|
||||
drive_folder_id text,
|
||||
email_address text,
|
||||
failover_client_certificate text,
|
||||
failover_client_certificate_hash text,
|
||||
fax_number text,
|
||||
iana_identifier bigint,
|
||||
icann_referral_email text,
|
||||
i18n_address_city text,
|
||||
i18n_address_country_code text,
|
||||
i18n_address_state text,
|
||||
i18n_address_street_line1 text,
|
||||
i18n_address_street_line2 text,
|
||||
i18n_address_street_line3 text,
|
||||
i18n_address_zip text,
|
||||
ip_address_allow_list text[],
|
||||
last_certificate_update_time timestamp(6) with time zone,
|
||||
last_expiring_cert_notification_sent_date timestamp(6) with time zone,
|
||||
last_expiring_failover_cert_notification_sent_date timestamp(6) with time zone,
|
||||
localized_address_city text,
|
||||
localized_address_country_code text,
|
||||
localized_address_state text,
|
||||
localized_address_street_line1 text,
|
||||
localized_address_street_line2 text,
|
||||
localized_address_street_line3 text,
|
||||
localized_address_zip text,
|
||||
password_hash text,
|
||||
phone_number text,
|
||||
phone_passcode text,
|
||||
po_number text,
|
||||
rdap_base_urls text[],
|
||||
registrar_name text not null,
|
||||
registry_lock_allowed boolean not null,
|
||||
password_salt text,
|
||||
state text check (state in ('PENDING','ACTIVE','SUSPENDED','DISABLED')),
|
||||
type text not null check (type in ('REAL','OTE','PDT','EXTERNAL_MONITORING','INTERNAL','MONITORING','TEST')),
|
||||
url text,
|
||||
whois_server text,
|
||||
update_timestamp timestamp(6) with time zone,
|
||||
registrar_id text not null,
|
||||
history_acting_user text not null,
|
||||
primary key (history_revision_id)
|
||||
);
|
||||
|
||||
create table "RegistryLock" (
|
||||
revision_id bigint generated by default as identity,
|
||||
last_update_time timestamp(6) with time zone not null,
|
||||
@@ -912,25 +817,6 @@
|
||||
primary key (email_address)
|
||||
);
|
||||
|
||||
create table "UserUpdateHistory" (
|
||||
history_revision_id bigint not null,
|
||||
history_method text not null,
|
||||
history_modification_time timestamp(6) with time zone not null,
|
||||
history_request_body text,
|
||||
history_type text not null check (history_type in ('DOMAIN_DELETE','DOMAIN_SUSPEND','DOMAIN_UNSUSPEND','EPP_PASSWORD_UPDATE','REGISTRAR_CREATE','REGISTRAR_SECURITY_UPDATE','REGISTRAR_UPDATE','USER_CREATE','USER_DELETE','USER_UPDATE')),
|
||||
history_url text not null,
|
||||
email_address text not null,
|
||||
registry_lock_email_address text,
|
||||
registry_lock_password_hash text,
|
||||
registry_lock_password_salt text,
|
||||
global_role text not null check (global_role in ('NONE','SUPPORT_AGENT','SUPPORT_LEAD','FTE')),
|
||||
is_admin boolean not null,
|
||||
registrar_roles hstore,
|
||||
update_timestamp timestamp(6) with time zone,
|
||||
history_acting_user text not null,
|
||||
primary key (history_revision_id)
|
||||
);
|
||||
|
||||
create index allocation_token_domain_name_idx
|
||||
on "AllocationToken" (domain_name);
|
||||
|
||||
@@ -1012,15 +898,6 @@
|
||||
create index IDXj874kw19bgdnkxo1rue45jwlw
|
||||
on "BsaDownload" (creation_time);
|
||||
|
||||
create index IDXcclyb3n5gbex8u8m9fjlujitw
|
||||
on "ConsoleEppActionHistory" (history_acting_user);
|
||||
|
||||
create index IDX6y67d6wsffmr6jcxax5ghwqhd
|
||||
on "ConsoleEppActionHistory" (repo_id);
|
||||
|
||||
create index IDXiahqo1d1fqdfknywmj2xbxl7t
|
||||
on "ConsoleEppActionHistory" (revision_id);
|
||||
|
||||
create index idx_console_update_history_acting_user
|
||||
on "ConsoleUpdateHistory" (acting_user);
|
||||
|
||||
@@ -1204,21 +1081,6 @@
|
||||
create index registrar_iana_identifier_idx
|
||||
on "Registrar" (iana_identifier);
|
||||
|
||||
create index IDXrn6posxkx58de1cp09g5257cw
|
||||
on "RegistrarPocUpdateHistory" (history_acting_user);
|
||||
|
||||
create index IDXr1cxua6it0rxgt9tpyugspxk
|
||||
on "RegistrarPocUpdateHistory" (email_address);
|
||||
|
||||
create index IDXfr24wvpg8qalwqy4pni7evrpj
|
||||
on "RegistrarPocUpdateHistory" (registrar_id);
|
||||
|
||||
create index IDXm6k18dusy2lfi5y81k8g256sa
|
||||
on "RegistrarUpdateHistory" (history_acting_user);
|
||||
|
||||
create index IDX3d1mucv7axrhud8w8jl4vsu62
|
||||
on "RegistrarUpdateHistory" (registrar_id);
|
||||
|
||||
create index idx_registry_lock_verification_code
|
||||
on "RegistryLock" (verification_code);
|
||||
|
||||
@@ -1237,17 +1099,6 @@
|
||||
create index spec11threatmatch_check_date_idx
|
||||
on "Spec11ThreatMatch" (check_date);
|
||||
|
||||
create index IDXbjacjlm8ianc4kxxvamnu94k5
|
||||
on "UserUpdateHistory" (history_acting_user);
|
||||
|
||||
create index IDX5yqacw829y5bm6f7eajsq1cts
|
||||
on "UserUpdateHistory" (email_address);
|
||||
|
||||
alter table if exists "ConsoleEppActionHistory"
|
||||
add constraint FKb686b9os2nsjpv930npa4r3b4
|
||||
foreign key (history_acting_user)
|
||||
references "User";
|
||||
|
||||
alter table if exists "ConsoleUpdateHistory"
|
||||
add constraint FKnhl1eolgix64u90xv3pj6xa3x
|
||||
foreign key (acting_user)
|
||||
@@ -1288,16 +1139,6 @@
|
||||
foreign key (domain_repo_id, domain_history_revision_id)
|
||||
references "DomainHistory";
|
||||
|
||||
alter table if exists "RegistrarPocUpdateHistory"
|
||||
add constraint FKftpbwctxtkc1i0njc0tdcaa2g
|
||||
foreign key (history_acting_user)
|
||||
references "User";
|
||||
|
||||
alter table if exists "RegistrarUpdateHistory"
|
||||
add constraint FKsr7w342s7x5s5jvdti2axqeq8
|
||||
foreign key (history_acting_user)
|
||||
references "User";
|
||||
|
||||
alter table if exists "RegistryLock"
|
||||
add constraint FK2lhcwpxlnqijr96irylrh1707
|
||||
foreign key (relock_revision_id)
|
||||
@@ -1307,8 +1148,3 @@
|
||||
add constraint FK5ivlhvs3121yx2li5tqh54u4
|
||||
foreign key (revision_id)
|
||||
references "SignedMarkRevocationList";
|
||||
|
||||
alter table if exists "UserUpdateHistory"
|
||||
add constraint FK1s7bopbl3pwrhv3jkkofnv3o0
|
||||
foreign key (history_acting_user)
|
||||
references "User";
|
||||
|
||||
Reference in New Issue
Block a user