mirror of
https://github.com/google/nomulus.git
synced 2025-05-22 04:09:46 +02:00
Add domain-specific history fields to DomainHistory objects (#794)
* Add domain-specific history fields to DomainHistory objects * Add javadoc for Hibernate-only methods * V52 -> V54 * Use only a single DomainTransactionRecord table * Add nullables and fix up a comment * V54 -> V55 * Regenerate db schema * Regen SQL file
This commit is contained in:
parent
89a9190d14
commit
dc6d3a4756
9 changed files with 255 additions and 19 deletions
|
@ -342,6 +342,9 @@ create sequence temp_history_id_sequence start 1 increment 50;
|
|||
last_epp_update_time timestamptz,
|
||||
statuses text[],
|
||||
update_timestamp timestamptz,
|
||||
history_other_registrar_id text,
|
||||
history_period_unit text,
|
||||
history_period_value int4,
|
||||
primary key (domain_repo_id, history_revision_id)
|
||||
);
|
||||
|
||||
|
@ -356,6 +359,17 @@ create sequence temp_history_id_sequence start 1 increment 50;
|
|||
host_repo_id text
|
||||
);
|
||||
|
||||
create table "DomainTransactionRecord" (
|
||||
id bigserial not null,
|
||||
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,
|
||||
primary key (id)
|
||||
);
|
||||
|
||||
create table "GracePeriod" (
|
||||
id bigserial not null,
|
||||
billing_event_id int8,
|
||||
|
@ -696,6 +710,11 @@ create index spec11threatmatch_check_date_idx on "Spec11ThreatMatch" (check_date
|
|||
foreign key (domain_repo_id)
|
||||
references "Domain";
|
||||
|
||||
alter table if exists "DomainTransactionRecord"
|
||||
add constraint FKcjqe54u72kha71vkibvxhjye7
|
||||
foreign key (domain_repo_id, history_revision_id)
|
||||
references "DomainHistory";
|
||||
|
||||
alter table if exists "GracePeriod"
|
||||
add constraint FK2mys4hojm6ev2g9tmy5aq6m7g
|
||||
foreign key (domain_repo_id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue