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
17 changed files with 578 additions and 41 deletions
@@ -0,0 +1,20 @@
-- Copyright 2020 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.
ALTER TABLE "RegistryLock" ADD COLUMN relock_revision_id bigint;
ALTER TABLE IF EXISTS "RegistryLock"
ADD CONSTRAINT FK2lhcwpxlnqijr96irylrh1707
FOREIGN KEY (relock_revision_id)
REFERENCES "RegistryLock";