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 8756cbde4..e60a6ec04 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-07-25 18:42:06 |
+ 2024-07-30 18:27:56 |
| last flyway file |
- V174__user_pkey.sql |
+ V175__user_update_history_id.sql |
@@ -280,7 +280,7 @@ td.section {
generated by
SchemaCrawler 16.21.4
generated on
- 2024-07-25 18:42:06
+ 2024-07-30 18:27:56
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 8744458f4..af00bbee6 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-07-25 18:42:05 |
+ 2024-07-30 18:27:55 |
| last flyway file |
- V174__user_pkey.sql |
+ V175__user_update_history_id.sql |
@@ -280,7 +280,7 @@ td.section {
generated by
SchemaCrawler 16.21.4
generated on
- 2024-07-25 18:42:05
+ 2024-07-30 18:27:55
@@ -4065,7 +4065,7 @@ td.section {
text not null
user_id
- int8 not null
+ int8
email_address
text not null
@@ -13316,7 +13316,7 @@ td.section {
|
user_id |
- int8 not null |
+ int8 |
|
diff --git a/db/src/main/resources/sql/flyway.txt b/db/src/main/resources/sql/flyway.txt
index cc5511486..e9799dcfe 100644
--- a/db/src/main/resources/sql/flyway.txt
+++ b/db/src/main/resources/sql/flyway.txt
@@ -172,3 +172,4 @@ V171__drop_create_billing_cost_columns_from_tld.sql
V172__allocation_token_renewal_price.sql
V173__create_feature_flag_table.sql
V174__user_pkey.sql
+V175__user_update_history_id.sql
diff --git a/db/src/main/resources/sql/flyway/V175__user_update_history_id.sql b/db/src/main/resources/sql/flyway/V175__user_update_history_id.sql
new file mode 100644
index 000000000..f2b691c49
--- /dev/null
+++ b/db/src/main/resources/sql/flyway/V175__user_update_history_id.sql
@@ -0,0 +1,15 @@
+-- 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.
+
+ALTER TABLE "UserUpdateHistory" ALTER COLUMN user_id DROP NOT NULL;
diff --git a/db/src/main/resources/sql/schema/nomulus.golden.sql b/db/src/main/resources/sql/schema/nomulus.golden.sql
index 48230f613..400bad24f 100644
--- a/db/src/main/resources/sql/schema/nomulus.golden.sql
+++ b/db/src/main/resources/sql/schema/nomulus.golden.sql
@@ -1340,7 +1340,7 @@ CREATE TABLE public."UserUpdateHistory" (
history_request_body text,
history_type text NOT NULL,
history_url text NOT NULL,
- user_id bigint NOT NULL,
+ user_id bigint,
email_address text NOT NULL,
registry_lock_password_hash text,
registry_lock_password_salt text,