Add a RelockDomainAction for future auto-relocks (#485)

* Add a RelockAction and reference to relocks in RegistryLocks

* Respond to CR

- refactor the request param exception logging a bit
- don't log an error if the domain was already locked, just skip

* Save a relock for all locks (if possible)

* derp

* Long -> long + remove unnecessary transact

* semantic merge conflict woo

* fix another semantic merge conflict
This commit is contained in:
gbrodman 2020-03-12 16:02:27 -04:00 committed by GitHub
parent 3e7ea75b6f
commit 560bec1e83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 578 additions and 41 deletions

View file

@ -180,6 +180,7 @@
unlock_completion_timestamp timestamptz,
unlock_request_timestamp timestamptz,
verification_code text not null,
relock_revision_id int8,
primary key (revision_id)
);
@ -224,6 +225,11 @@ create index reservedlist_name_idx on "ReservedList" (name);
foreign key (revision_id)
references "PremiumList";
alter table if exists "RegistryLock"
add constraint FK2lhcwpxlnqijr96irylrh1707
foreign key (relock_revision_id)
references "RegistryLock";
alter table if exists "ReservedEntry"
add constraint FKgq03rk0bt1hb915dnyvd3vnfc
foreign key (revision_id)