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 fb82435df..52f188c94 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,19 +261,19 @@ td.section {
generated on
- 2022-09-01 15:31:59.206925
+ 2022-09-14 21:40:35.281416
last flyway file
- V127__fix_user.sql
+ V128__fix_package_promotion_id.sql
-
+
SchemaCrawler_Diagram
-
+
generated by
@@ -284,7 +284,7 @@ td.section {
generated on
- 2022-09-01 15:31:59.206925
+ 2022-09-14 21:40:35.281416
@@ -425,133 +425,133 @@ td.section {
billingevent_a57d1815:w->allocationtoken_a08ccbef:e
-
+
-
-
-
-
-
+
+
+
+
+
fk_billing_event_allocation_token
domainhistory_a54cc226
-
-
+
+
public.DomainHistory
-
-
+
+
[table]
-
+
history_revision_id
-
+
-
+
int8 not null
-
+
history_registrar_id
-
+
-
+
text
-
+
history_modification_time
-
+
-
+
timestamptz not null
-
+
history_type
-
+
-
+
text not null
-
+
creation_time
-
+
-
+
timestamptz
-
+
domain_repo_id
-
+
-
+
text not null
-
+
current_package_token
-
+
-
+
text
-
+
billingevent_a57d1815:w->domainhistory_a54cc226:e
-
+
-
-
-
-
+
+
+
+
fk_billing_event_domain_history
billingevent_a57d1815:w->domainhistory_a54cc226:e
-
+
-
-
-
-
+
+
+
+
fk_billing_event_domain_history
billingevent_a57d1815:w->domainhistory_a54cc226:e
-
+
-
-
-
-
+
+
+
+
fk_billing_event_recurrence_history
billingevent_a57d1815:w->domainhistory_a54cc226:e
-
+
-
-
-
-
-
+
+
+
+
+
fk_billing_event_recurrence_history
@@ -634,14 +634,14 @@ td.section {
billingevent_a57d1815:w->billingrecurrence_5fa2cb01:e
-
+
-
+
-
-
-
+
+
+
fk_billing_event_cancellation_matching_billing_recurrence_id
@@ -683,202 +683,202 @@ td.section {
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
-
+
-
+
timestamptz not null
-
+
current_sponsor_registrar_id
-
+
-
+
text not null
-
+
deletion_time
-
+
-
+
timestamptz
-
+
last_epp_update_registrar_id
-
+
-
+
text
-
+
domain_name
-
+
-
+
text
-
+
tld
-
+
-
+
text
-
+
admin_contact
-
+
-
+
text
-
+
billing_contact
-
+
-
+
text
-
+
registrant_contact
-
+
-
+
text
-
+
tech_contact
-
+
-
+
text
-
+
transfer_billing_cancellation_id
-
+
-
+
int8
-
+
transfer_billing_event_id
-
+
-
+
int8
-
+
transfer_billing_recurrence_id
-
+
-
+
int8
-
+
transfer_gaining_registrar_id
-
+
-
+
text
-
+
transfer_losing_registrar_id
-
+
-
+
text
-
+
billing_recurrence_id
-
+
-
+
int8
-
+
autorenew_end_time
-
+
-
+
timestamptz
-
+
dns_refresh_request_time
-
+
-
+
timestamptz
-
+
current_package_token
-
+
-
+
text
-
+
domain_6c51cffa:w->allocationtoken_a08ccbef:e
-
-
-
+
+
+
@@ -889,14 +889,14 @@ td.section {
domain_6c51cffa:w->billingevent_a57d1815:e
-
-
-
+
+
+
-
+
fk_domain_transfer_billing_event_id
@@ -978,9 +978,9 @@ td.section {
domain_6c51cffa:w->billingcancellation_6eedf614:e
-
-
-
+
+
+
@@ -991,9 +991,9 @@ td.section {
domain_6c51cffa:w->billingrecurrence_5fa2cb01:e
-
-
-
+
+
+
@@ -1004,14 +1004,14 @@ td.section {
domain_6c51cffa:w->billingrecurrence_5fa2cb01:e
-
-
-
+
+
+
-
+
fk_domain_transfer_billing_recurrence_id
@@ -1109,61 +1109,61 @@ 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
domain_6c51cffa:w->registrar_6e1503e3:e
-
-
-
+
+
+
@@ -1174,9 +1174,9 @@ td.section {
domain_6c51cffa:w->registrar_6e1503e3:e
-
-
-
+
+
+
@@ -1187,9 +1187,9 @@ td.section {
domain_6c51cffa:w->registrar_6e1503e3:e
-
-
-
+
+
+
@@ -1200,9 +1200,9 @@ td.section {
domain_6c51cffa:w->registrar_6e1503e3:e
-
-
-
+
+
+
@@ -1213,9 +1213,9 @@ td.section {
domain_6c51cffa:w->registrar_6e1503e3:e
-
-
-
+
+
+
@@ -1246,59 +1246,59 @@ td.section {
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
-
+
@@ -1311,27 +1311,27 @@ td.section {
billingcancellation_6eedf614:w->domainhistory_a54cc226:e
-
+
-
-
-
-
-
+
+
+
+
+
fk_billing_cancellation_domain_history
billingcancellation_6eedf614:w->domainhistory_a54cc226:e
-
+
-
-
-
-
-
+
+
+
+
+
fk_billing_cancellation_domain_history
@@ -1428,27 +1428,27 @@ 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
@@ -1467,27 +1467,27 @@ td.section {
billingrecurrence_5fa2cb01:w->domainhistory_a54cc226:e
-
+
-
-
-
-
+
+
+
+
fk_billing_recurrence_domain_history
billingrecurrence_5fa2cb01:w->domainhistory_a54cc226:e
-
+
-
-
-
-
-
+
+
+
+
+
fk_billing_recurrence_domain_history
@@ -1506,67 +1506,67 @@ td.section {
claimsentry_105da9f1
-
-
+
+
public.ClaimsEntry
-
-
+
+
[table]
-
+
revision_id
-
+
-
+
int8 not null
-
+
domain_label
-
+
-
+
text not null
-
+
claimslist_3d49bc2b
-
-
+
+
public.ClaimsList
-
-
+
+
[table]
-
+
revision_id
-
+
-
+
bigserial not null
-
+
-
+
auto-incremented
-
+
claimsentry_105da9f1:w->claimslist_3d49bc2b:e
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
fk6sc6at5hedffc0nhdcab6ivuq
@@ -1637,87 +1637,87 @@ td.section {
contacthistory_d2964f8a
-
-
+
+
public.ContactHistory
-
-
+
+
[table]
-
+
history_revision_id
-
+
-
+
int8 not null
-
+
history_registrar_id
-
+
-
+
text
-
+
history_modification_time
-
+
-
+
timestamptz not null
-
+
history_type
-
+
-
+
text not null
-
+
creation_time
-
+
-
+
timestamptz
-
+
contact_repo_id
-
+
-
+
text not null
-
+
contacthistory_d2964f8a:w->contact_8de8cb16:e
-
-
-
+
+
+
-
+
fk_contact_history_contact_repo_id
contacthistory_d2964f8a:w->registrar_6e1503e3:e
-
-
-
+
+
+
-
+
fk_contact_history_registrar_id
@@ -1823,78 +1823,78 @@ td.section {
pollmessage_614a523e:w->domain_6c51cffa:e
-
+
-
-
-
-
+
+
+
+
fk_poll_message_domain_repo_id
pollmessage_614a523e:w->domainhistory_a54cc226:e
-
+
-
-
-
-
+
+
+
+
fk_poll_message_domain_history
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
@@ -2092,90 +2092,90 @@ td.section {
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
-
+
databasemigrationstateschedule_22edefab
-
-
+
+
public.DatabaseMigrationStateSchedule
-
-
+
+
[table]
-
+
id
-
+
-
+
int8 not null
-
+
delegationsignerdata_e542a872
@@ -2231,13 +2231,13 @@ td.section {
delegationsignerdata_e542a872:w->domain_6c51cffa:e
-
+
-
-
-
-
+
+
+
+
fktr24j9v14ph2mfuw2gsmt12kq
@@ -2272,13 +2272,13 @@ td.section {
domainhost_1ea127c2:w->domain_6c51cffa:e
-
+
-
-
-
-
+
+
+
+
fkfmi7bdink53swivs390m2btxg
@@ -2298,22 +2298,22 @@ td.section {
host_f21b78de:w->domain_6c51cffa:e
-
-
+
+
-
-
-
-
+
+
+
+
fk_host_superordinate_domain
host_f21b78de:w->registrar_6e1503e3:e
-
-
-
+
+
+
@@ -2324,9 +2324,9 @@ td.section {
host_f21b78de:w->registrar_6e1503e3:e
-
-
-
+
+
+
@@ -2337,14 +2337,14 @@ td.section {
host_f21b78de:w->registrar_6e1503e3:e
-
-
+
+
-
+
-
+
fk_host_last_epp_update_registrar_id
@@ -2386,26 +2386,26 @@ td.section {
domaindsdatahistory_995b060d:w->domainhistory_a54cc226:e
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
fko4ilgyyfnvppbpuivus565i0j
domaindsdatahistory_995b060d:w->domainhistory_a54cc226:e
-
+
-
-
-
-
+
+
+
+
fko4ilgyyfnvppbpuivus565i0j
@@ -2448,26 +2448,26 @@ td.section {
domainhistoryhost_9f3f23ee:w->domainhistory_a54cc226:e
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
fka9woh3hu8gx5x0vly6bai327n
domainhistoryhost_9f3f23ee:w->domainhistory_a54cc226:e
-
+
-
-
-
-
+
+
+
+
fka9woh3hu8gx5x0vly6bai327n
@@ -2523,40 +2523,40 @@ td.section {
domaintransactionrecord_6e77ff61:w->domainhistory_a54cc226:e
-
+
-
-
-
-
+
+
+
+
fkcjqe54u72kha71vkibvxhjye7
domaintransactionrecord_6e77ff61:w->domainhistory_a54cc226:e
-
+
-
-
-
-
+
+
+
+
fkcjqe54u72kha71vkibvxhjye7
domaintransactionrecord_6e77ff61:w->tld_f1fa57e2:e
-
+
-
+
fk_domain_transaction_record_tld
@@ -2598,26 +2598,26 @@ td.section {
graceperiodhistory_40ccc1f1:w->domainhistory_a54cc226:e
-
+
-
-
-
-
+
+
+
+
fk7w3cx8d55q8bln80e716tr7b8
graceperiodhistory_40ccc1f1:w->domainhistory_a54cc226:e
-
-
+
+
-
-
-
-
+
+
+
+
fk7w3cx8d55q8bln80e716tr7b8
@@ -2637,182 +2637,187 @@ td.section {
hosthistory_56210c2:w->registrar_6e1503e3:e
-
-
-
+
+
+
-
+
-
+
fk_history_registrar_id
lock_f21d4861
-
-
+
+
public.Lock
-
-
+
+
[table]
-
+
resource_name
-
+
-
+
text not null
-
+
"scope"
-
+
-
+
text not null
-
+
packagepromotion_56aa33
-
-
+
+
public.PackagePromotion
-
-
+
+
[table]
-
+
package_promotion_id
-
+
-
- int8 not null
+
+ bigserial not null
-
+
+
+
+ auto-incremented
+
+
token
-
+
-
+
text not null
-
+
premiumentry_b0060b91
-
-
+
+
public.PremiumEntry
-
-
+
+
[table]
-
+
revision_id
-
+
-
+
int8 not null
-
+
domain_label
-
+
-
+
text not null
-
+
premiumlist_7c3ea68b
-
-
+
+
public.PremiumList
-
-
+
+
[table]
-
+
revision_id
-
+
-
+
bigserial not null
-
+
-
+
auto-incremented
-
+
name
-
+
-
+
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
-
+
registrarpoc_ab47054d
@@ -2865,343 +2870,343 @@ td.section {
registrylock_ac88663e
-
-
+
+
public.RegistryLock
-
-
+
+
[table]
-
+
revision_id
-
+
-
+
bigserial not null
-
+
-
+
auto-incremented
-
+
registrar_id
-
+
-
+
text not null
-
+
repo_id
-
+
-
+
text not null
-
+
verification_code
-
+
-
+
text not null
-
+
relock_revision_id
-
+
-
+
int8
-
+
registrylock_ac88663e:w->registrylock_ac88663e:e
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
fk2lhcwpxlnqijr96irylrh1707
reservedentry_1a7b8520
-
-
+
+
public.ReservedEntry
-
-
+
+
[table]
-
+
revision_id
-
+
-
+
int8 not null
-
+
domain_label
-
+
-
+
text not null
-
+
reservedlist_b97c3f1c
-
-
+
+
public.ReservedList
-
-
+
+
[table]
-
+
revision_id
-
+
-
+
bigserial not null
-
+
-
+
auto-incremented
-
+
name
-
+
-
+
text not null
-
+
reservedentry_1a7b8520:w->reservedlist_b97c3f1c:e
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
fkgq03rk0bt1hb915dnyvd3vnfc
serversecret_6cc90f09
-
-
+
+
public.ServerSecret
-
-
+
+
[table]
-
+
id
-
+
-
+
int8 not null
-
+
signedmarkrevocationentry_99c39721
-
-
+
+
public.SignedMarkRevocationEntry
-
-
+
+
[table]
-
+
revision_id
-
+
-
+
int8 not null
-
+
smd_id
-
+
-
+
text not null
-
+
signedmarkrevocationlist_c5d968fb
-
-
+
+
public.SignedMarkRevocationList
-
-
+
+
[table]
-
+
revision_id
-
+
-
+
bigserial not null
-
+
-
+
auto-incremented
-
+
signedmarkrevocationentry_99c39721:w->signedmarkrevocationlist_c5d968fb:e
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
fk5ivlhvs3121yx2li5tqh54u4
spec11threatmatch_a61228a6
-
-
+
+
public.Spec11ThreatMatch
-
-
+
+
[table]
-
+
id
-
+
-
+
bigserial not null
-
+
-
+
auto-incremented
-
+
check_date
-
+
-
+
date not null
-
+
registrar_id
-
+
-
+
text not null
-
+
tld
-
+
-
+
text not null
-
+
tmchcrl_d282355
-
-
+
+
public.TmchCrl
-
-
+
+
[table]
-
+
id
-
+
-
+
int8 not null
-
+
user_f2216f01
-
-
+
+
public."User"
-
-
+
+
[table]
-
+
id
-
+
-
+
bigserial not null
-
+
-
+
auto-incremented
-
+
email_address
-
+
-
+
text not null
-
+
gaia_id
-
+
-
+
text not null
-
+
@@ -5739,7 +5744,12 @@ td.section {
package_promotion_id
- int8 not null
+ bigserial not null
+
+
+
+
+ auto-incremented
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 d86508582..767e64384 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-09-01 15:31:54.876473
+ 2022-09-14 21:40:33.388526
last flyway file
- V127__fix_user.sql
+ V128__fix_package_promotion_id.sql
-
+
SchemaCrawler_Diagram
-
+
generated by
@@ -284,7 +284,7 @@ td.section {
generated on
- 2022-09-01 15:31:54.876473
+ 2022-09-14 21:40:33.388526
@@ -5638,21 +5638,26 @@ td.section {
packagepromotion_56aa33
-
-
+
+
public.PackagePromotion
-
-
+
+
[table]
-
+
package_promotion_id
+
+
+
+ bigserial not null
+
- int8 not null
+ auto-incremented
last_notification_sent
@@ -5710,165 +5715,165 @@ td.section {
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
@@ -6009,567 +6014,567 @@ td.section {
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
-
+
-
+
bigserial not null
-
+
-
+
auto-incremented
-
+
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
-
+
update_timestamp
-
+
-
+
timestamptz
-
+
@@ -11764,7 +11769,12 @@ td.section {
package_promotion_id
- int8 not null
+ bigserial not null
+
+
+
+
+ auto-incremented
diff --git a/db/src/main/resources/sql/flyway.txt b/db/src/main/resources/sql/flyway.txt
index dab96b9c4..0ba260bb0 100644
--- a/db/src/main/resources/sql/flyway.txt
+++ b/db/src/main/resources/sql/flyway.txt
@@ -125,3 +125,4 @@ V124__add_console_user.sql
V125__create_package_promotion.sql
V126__drop_autorenew_poll_message_history_id_column_in_domain_table.sql
V127__fix_user.sql
+V128__fix_package_promotion_id.sql
diff --git a/db/src/main/resources/sql/flyway/V128__fix_package_promotion_id.sql b/db/src/main/resources/sql/flyway/V128__fix_package_promotion_id.sql
new file mode 100644
index 000000000..31e99985b
--- /dev/null
+++ b/db/src/main/resources/sql/flyway/V128__fix_package_promotion_id.sql
@@ -0,0 +1,23 @@
+-- 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.
+
+CREATE SEQUENCE "Package_promotion_id_seq"
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1;
+ALTER SEQUENCE "Package_promotion_id_seq" OWNED BY "PackagePromotion".package_promotion_id;
+
+ALTER TABLE "PackagePromotion" ALTER COLUMN package_promotion_id SET DEFAULT nextval('"Package_promotion_id_seq"'::regclass);
diff --git a/db/src/main/resources/sql/schema/nomulus.golden.sql b/db/src/main/resources/sql/schema/nomulus.golden.sql
index 1d0f5a8b5..f10f49822 100644
--- a/db/src/main/resources/sql/schema/nomulus.golden.sql
+++ b/db/src/main/resources/sql/schema/nomulus.golden.sql
@@ -661,6 +661,25 @@ CREATE TABLE public."PackagePromotion" (
);
+--
+-- Name: Package_promotion_id_seq; Type: SEQUENCE; Schema: public; Owner: -
+--
+
+CREATE SEQUENCE public."Package_promotion_id_seq"
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1;
+
+
+--
+-- Name: Package_promotion_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
+--
+
+ALTER SEQUENCE public."Package_promotion_id_seq" OWNED BY public."PackagePromotion".package_promotion_id;
+
+
--
-- Name: PollMessage; Type: TABLE; Schema: public; Owner: -
--
@@ -1104,6 +1123,13 @@ ALTER TABLE ONLY public."ClaimsList" ALTER COLUMN revision_id SET DEFAULT nextva
ALTER TABLE ONLY public."DomainTransactionRecord" ALTER COLUMN id SET DEFAULT nextval('public."DomainTransactionRecord_id_seq"'::regclass);
+--
+-- Name: PackagePromotion package_promotion_id; Type: DEFAULT; Schema: public; Owner: -
+--
+
+ALTER TABLE ONLY public."PackagePromotion" ALTER COLUMN package_promotion_id SET DEFAULT nextval('public."Package_promotion_id_seq"'::regclass);
+
+
--
-- Name: PremiumList revision_id; Type: DEFAULT; Schema: public; Owner: -
--