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 { </tr> <tr> <td class="property_name">generated on</td> - <td class="property_value">2024-04-17 19:49:29.701469664</td> + <td class="property_value">2024-04-24 21:30:36.545885131</td> </tr> <tr> <td class="property_name">last flyway file</td> - <td id="lastFlywayFile" class="property_value">V167__creat_billing_cost_transitions_not_null.sql</td> + <td id="lastFlywayFile" class="property_value">V168__registry_lock_email.sql</td> </tr> </tbody> </table> @@ -280,7 +280,7 @@ td.section { <text text-anchor="start" x="4443.5" y="-29.8" font-family="Helvetica,sans-Serif" font-size="14.00">generated by</text> <text text-anchor="start" x="4526.5" y="-29.8" font-family="Helvetica,sans-Serif" font-size="14.00">SchemaCrawler 16.10.1</text> <text text-anchor="start" x="4442.5" y="-10.8" font-family="Helvetica,sans-Serif" font-size="14.00">generated on</text> - <text text-anchor="start" x="4526.5" y="-10.8" font-family="Helvetica,sans-Serif" font-size="14.00">2024-04-17 19:49:29.701469664</text> + <text text-anchor="start" x="4526.5" y="-10.8" font-family="Helvetica,sans-Serif" font-size="14.00">2024-04-24 21:30:36.545885131</text> <polygon fill="none" stroke="#888888" points="4439,-4 4439,-44 4726,-44 4726,-4 4439,-4" /> <!-- allocationtoken_a08ccbef --> <g id="node1" class="node"> <title> @@ -2097,7 +2097,10 @@ td.section { <text text-anchor="start" x="713" y="-314.3" font-family="Helvetica,sans-Serif" font-size="14.00">update_timestamp</text> <text text-anchor="start" x="895" y="-314.3" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> <text text-anchor="start" x="903" y="-314.3" font-family="Helvetica,sans-Serif" font-size="14.00">timestamptz</text> - <polygon fill="none" stroke="#888888" points="710,-307.5 710,-499.5 1012,-499.5 1012,-307.5 710,-307.5" /> + <text text-anchor="start" x="713" y="-295.3" font-family="Helvetica,sans-Serif" font-size="14.00">registry_lock_email_address</text> + <text text-anchor="start" x="895" y="-295.3" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> + <text text-anchor="start" x="903" y="-295.3" font-family="Helvetica,sans-Serif" font-size="14.00">text</text> + <polygon fill="none" stroke="#888888" points="710,-289 710,-500 1012,-500 1012,-289 710,-289" /> </g> <!-- consoleeppactionhistory_bcc2a2c6->user_f2216f01 --> <g id="edge85" class="edge"> <title> @@ -13056,6 +13059,11 @@ td.section { <td class="minwidth">update_timestamp</td> <td class="minwidth">timestamptz</td> </tr> + <tr> + <td class="spacer"></td> + <td class="minwidth">registry_lock_email_address</td> + <td class="minwidth">text</td> + </tr> <tr> <td colspan="3"></td> </tr> 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 );