Add a relockDuration to the RegistryLock SQL object (#514)

* Add a relockDuration to the RegistryLock SQL object

This is the length of time after an unlock that we will re-lock the
domain in question.

* Sort by domain name for stability

Note: this is likely not the best solution for the UI but we can iterate
on this.

* Add nullable

* Add a converter for Duration
This commit is contained in:
gbrodman
2020-03-16 17:44:25 -04:00
committed by GitHub
parent d09fc7ee05
commit e9610636e4
12 changed files with 174 additions and 18 deletions
@@ -176,6 +176,7 @@
lock_request_timestamp timestamptz not null,
registrar_id text not null,
registrar_poc_id text,
relock_duration int8,
repo_id text not null,
unlock_completion_timestamp timestamptz,
unlock_request_timestamp timestamptz,
@@ -262,7 +262,8 @@ CREATE TABLE public."RegistryLock" (
unlock_request_timestamp timestamp with time zone,
unlock_completion_timestamp timestamp with time zone,
last_update_timestamp timestamp with time zone,
relock_revision_id bigint
relock_revision_id bigint,
relock_duration bigint
);