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 c8082e46a..e97788845 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,11 +261,11 @@ td.section {
| generated on |
- 2024-04-17 19:49:33.30624492 |
+ 2024-04-24 21:30:39.425345476 |
| last flyway file |
- V167__creat_billing_cost_transitions_not_null.sql |
+ V168__registry_lock_email.sql |
@@ -277,11 +277,11 @@ td.section {
SchemaCrawler_Diagram
- generated by
- SchemaCrawler 16.10.1
- generated on
- 2024-04-17 19:49:33.30624492
-
+ generated by
+ SchemaCrawler 16.10.1
+ generated on
+ 2024-04-24 21:30:39.425345476
+
allocationtoken_a08ccbef
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 4587f50ac..29bc649d7 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,11 +261,11 @@ td.section {
| generated on |
- 2024-04-17 19:49:29.701469664 |
+ 2024-04-24 21:30:36.545885131 |
| last flyway file |
- V167__creat_billing_cost_transitions_not_null.sql |
+ V168__registry_lock_email.sql |
@@ -280,7 +280,7 @@ td.section {
generated by
SchemaCrawler 16.10.1
generated on
- 2024-04-17 19:49:29.701469664
+ 2024-04-24 21:30:36.545885131
@@ -2097,7 +2097,10 @@ td.section {
update_timestamp
timestamptz
-
+ registry_lock_email_address
+
+ text
+
@@ -13056,6 +13059,11 @@ td.section {
update_timestamp |
timestamptz |
+
+ |
+ registry_lock_email_address |
+ text |
+
|
diff --git a/db/src/main/resources/sql/flyway.txt b/db/src/main/resources/sql/flyway.txt
index 6d94ef472..5f53b6842 100644
--- a/db/src/main/resources/sql/flyway.txt
+++ b/db/src/main/resources/sql/flyway.txt
@@ -165,3 +165,4 @@ V164__rename_console_user_history_time.sql
V165__add_domain_repo_id_indexes_to_more_tables.sql
V166__drop_should_publish_column.sql
V167__creat_billing_cost_transitions_not_null.sql
+V168__registry_lock_email.sql
diff --git a/db/src/main/resources/sql/flyway/V168__registry_lock_email.sql b/db/src/main/resources/sql/flyway/V168__registry_lock_email.sql
new file mode 100644
index 000000000..b29fc63de
--- /dev/null
+++ b/db/src/main/resources/sql/flyway/V168__registry_lock_email.sql
@@ -0,0 +1,18 @@
+-- Copyright 2024 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.
+
+-- Note: we drop the not-null constraints from the history tables but we keep them in the
+-- EPP resource tables since nothing inserted there should be null
+
+ALTER TABLE "User" ADD COLUMN registry_lock_email_address text;
diff --git a/db/src/main/resources/sql/schema/nomulus.golden.sql b/db/src/main/resources/sql/schema/nomulus.golden.sql
index d66f1689d..68e5aaf3d 100644
--- a/db/src/main/resources/sql/schema/nomulus.golden.sql
+++ b/db/src/main/resources/sql/schema/nomulus.golden.sql
@@ -1314,7 +1314,8 @@ CREATE TABLE public."User" (
global_role text NOT NULL,
is_admin boolean NOT NULL,
registrar_roles public.hstore NOT NULL,
- update_timestamp timestamp with time zone
+ update_timestamp timestamp with time zone,
+ registry_lock_email_address text
);