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 b266f89a6f6..e6a61256f3a 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 @@

System Information

generated on - 2024-02-28 21:05:41.339823732 + 2024-03-11 20:42:54.463293864 last flyway file - V160__user_update_history_indexes.sql + V164__rename_console_user_history_time.sql @@ -280,7 +280,7 @@

System Information

generated by SchemaCrawler 16.10.1 generated on - 2024-02-28 21:05:41.339823732 + 2024-03-11 20:42:54.463293864 @@ -1226,7 +1226,7 @@ <h2>System Information</h2> <text text-anchor="start" x="1294.5" y="-115.3" font-family="Helvetica,sans-Serif" font-size="14.00">int8 not null</text> <text text-anchor="start" x="1079.5" y="-96.3" font-family="Helvetica,sans-Serif" font-size="14.00">repo_id</text> <text text-anchor="start" x="1246.5" y="-96.3" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> - <text text-anchor="start" x="1294.5" y="-96.3" font-family="Helvetica,sans-Serif" font-size="14.00">text</text> + <text text-anchor="start" x="1294.5" y="-96.3" font-family="Helvetica,sans-Serif" font-size="14.00">text not null</text> <text text-anchor="start" x="1079.5" y="-77.3" font-family="Helvetica,sans-Serif" font-size="14.00">revision_id</text> <text text-anchor="start" x="1246.5" y="-77.3" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> <text text-anchor="start" x="1294.5" y="-77.3" font-family="Helvetica,sans-Serif" font-size="14.00">int8 not null</text> @@ -3397,7 +3397,7 @@ <h2>Tables</h2> <tr> <td class="spacer"></td> <td class="minwidth">repo_id</td> - <td class="minwidth">text</td> + <td class="minwidth">text not null</td> </tr> <tr> <td class="spacer"></td> 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 210f6e0cedb..700f6ab8416 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 @@ <h2>System Information</h2> </tr> <tr> <td class="property_name">generated on</td> - <td class="property_value">2024-02-28 21:05:38.949362998</td> + <td class="property_value">2024-03-11 20:42:51.738018408</td> </tr> <tr> <td class="property_name">last flyway file</td> - <td id="lastFlywayFile" class="property_value">V160__user_update_history_indexes.sql</td> + <td id="lastFlywayFile" class="property_value">V164__rename_console_user_history_time.sql</td> </tr> </tbody> </table> @@ -280,7 +280,7 @@ <h2>System Information</h2> <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-02-28 21:05:38.949362998</text> + <text text-anchor="start" x="4526.5" y="-10.8" font-family="Helvetica,sans-Serif" font-size="14.00">2024-03-11 20:42:51.738018408</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> @@ -2032,34 +2032,34 @@ <h2>System Information</h2> <polygon fill="#ebcef2" stroke="transparent" points="1605,-242.5 1605,-261.5 1731,-261.5 1731,-242.5 1605,-242.5" /> <text text-anchor="start" x="1692" y="-248.3" font-family="Helvetica,sans-Serif" font-size="14.00">[table]</text> <text text-anchor="start" x="1392" y="-230.3" font-family="Helvetica,sans-Serif" font-weight="bold" font-style="italic" font-size="14.00">history_revision_id</text> - <text text-anchor="start" x="1562" y="-229.3" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> + <text text-anchor="start" x="1574" y="-229.3" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> <text text-anchor="start" x="1607" y="-229.3" font-family="Helvetica,sans-Serif" font-size="14.00">int8 not null</text> - <text text-anchor="start" x="1392" y="-210.3" font-family="Helvetica,sans-Serif" font-size="14.00">history_date_time</text> - <text text-anchor="start" x="1562" y="-210.3" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> + <text text-anchor="start" x="1392" y="-210.3" font-family="Helvetica,sans-Serif" font-size="14.00">history_modification_time</text> + <text text-anchor="start" x="1574" y="-210.3" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> <text text-anchor="start" x="1607" y="-210.3" font-family="Helvetica,sans-Serif" font-size="14.00">timestamptz not null</text> <text text-anchor="start" x="1392" y="-191.3" font-family="Helvetica,sans-Serif" font-size="14.00">history_method</text> - <text text-anchor="start" x="1562" y="-191.3" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> + <text text-anchor="start" x="1574" y="-191.3" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> <text text-anchor="start" x="1607" y="-191.3" font-family="Helvetica,sans-Serif" font-size="14.00">text not null</text> <text text-anchor="start" x="1392" y="-172.3" font-family="Helvetica,sans-Serif" font-size="14.00">history_request_body</text> - <text text-anchor="start" x="1562" y="-172.3" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> + <text text-anchor="start" x="1574" y="-172.3" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> <text text-anchor="start" x="1607" y="-172.3" font-family="Helvetica,sans-Serif" font-size="14.00">text</text> <text text-anchor="start" x="1392" y="-153.3" font-family="Helvetica,sans-Serif" font-size="14.00">history_type</text> - <text text-anchor="start" x="1562" y="-153.3" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> + <text text-anchor="start" x="1574" y="-153.3" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> <text text-anchor="start" x="1607" y="-153.3" font-family="Helvetica,sans-Serif" font-size="14.00">text not null</text> <text text-anchor="start" x="1392" y="-134.3" font-family="Helvetica,sans-Serif" font-size="14.00">history_url</text> - <text text-anchor="start" x="1562" y="-134.3" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> + <text text-anchor="start" x="1574" y="-134.3" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> <text text-anchor="start" x="1607" y="-134.3" font-family="Helvetica,sans-Serif" font-size="14.00">text not null</text> <text text-anchor="start" x="1392" y="-115.3" font-family="Helvetica,sans-Serif" font-size="14.00">history_entry_class</text> - <text text-anchor="start" x="1562" y="-115.3" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> - <text text-anchor="start" x="1607" y="-115.3" font-family="Helvetica,sans-Serif" font-size="14.00">text</text> + <text text-anchor="start" x="1574" y="-115.3" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> + <text text-anchor="start" x="1607" y="-115.3" font-family="Helvetica,sans-Serif" font-size="14.00">text not null</text> <text text-anchor="start" x="1392" y="-96.3" font-family="Helvetica,sans-Serif" font-size="14.00">repo_id</text> - <text text-anchor="start" x="1562" y="-96.3" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> - <text text-anchor="start" x="1607" y="-96.3" font-family="Helvetica,sans-Serif" font-size="14.00">text</text> + <text text-anchor="start" x="1574" y="-96.3" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> + <text text-anchor="start" x="1607" y="-96.3" font-family="Helvetica,sans-Serif" font-size="14.00">text not null</text> <text text-anchor="start" x="1392" y="-77.3" font-family="Helvetica,sans-Serif" font-size="14.00">revision_id</text> - <text text-anchor="start" x="1562" y="-77.3" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> + <text text-anchor="start" x="1574" y="-77.3" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> <text text-anchor="start" x="1607" y="-77.3" font-family="Helvetica,sans-Serif" font-size="14.00">int8 not null</text> <text text-anchor="start" x="1392" y="-58.3" font-family="Helvetica,sans-Serif" font-size="14.00">history_acting_user</text> - <text text-anchor="start" x="1562" y="-58.3" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> + <text text-anchor="start" x="1574" y="-58.3" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> <text text-anchor="start" x="1607" y="-58.3" font-family="Helvetica,sans-Serif" font-size="14.00">text not null</text> <polygon fill="none" stroke="#888888" points="1388.5,-52 1388.5,-263 1731.5,-263 1731.5,-52 1388.5,-52" /> </g> <!-- user_f2216f01 --> @@ -3478,7 +3478,7 @@ <h2>System Information</h2> <text text-anchor="start" x="1345" y="-1617.3" font-family="Helvetica,sans-Serif" font-weight="bold" font-style="italic" font-size="14.00">history_revision_id</text> <text text-anchor="start" x="1645" y="-1616.3" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> <text text-anchor="start" x="1653" y="-1616.3" font-family="Helvetica,sans-Serif" font-size="14.00">int8 not null</text> - <text text-anchor="start" x="1345" y="-1597.3" font-family="Helvetica,sans-Serif" font-size="14.00">history_date_time</text> + <text text-anchor="start" x="1345" y="-1597.3" font-family="Helvetica,sans-Serif" font-size="14.00">history_modification_time</text> <text text-anchor="start" x="1645" y="-1597.3" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> <text text-anchor="start" x="1653" y="-1597.3" font-family="Helvetica,sans-Serif" font-size="14.00">timestamptz not null</text> <text text-anchor="start" x="1345" y="-1578.3" font-family="Helvetica,sans-Serif" font-size="14.00">history_method</text> @@ -3673,7 +3673,7 @@ <h2>System Information</h2> <text text-anchor="start" x="1374" y="-2063.3" font-family="Helvetica,sans-Serif" font-weight="bold" font-style="italic" font-size="14.00">history_revision_id</text> <text text-anchor="start" x="1617" y="-2062.3" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> <text text-anchor="start" x="1625" y="-2062.3" font-family="Helvetica,sans-Serif" font-size="14.00">int8 not null</text> - <text text-anchor="start" x="1374" y="-2043.3" font-family="Helvetica,sans-Serif" font-size="14.00">history_date_time</text> + <text text-anchor="start" x="1374" y="-2043.3" font-family="Helvetica,sans-Serif" font-size="14.00">history_modification_time</text> <text text-anchor="start" x="1617" y="-2043.3" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> <text text-anchor="start" x="1625" y="-2043.3" font-family="Helvetica,sans-Serif" font-size="14.00">timestamptz not null</text> <text text-anchor="start" x="1374" y="-2024.3" font-family="Helvetica,sans-Serif" font-size="14.00">history_method</text> @@ -4032,7 +4032,7 @@ <h2>System Information</h2> <text text-anchor="start" x="1404" y="-563.3" font-family="Helvetica,sans-Serif" font-weight="bold" font-style="italic" font-size="14.00">history_revision_id</text> <text text-anchor="start" x="1586" y="-562.3" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> <text text-anchor="start" x="1594" y="-562.3" font-family="Helvetica,sans-Serif" font-size="14.00">int8 not null</text> - <text text-anchor="start" x="1404" y="-543.3" font-family="Helvetica,sans-Serif" font-size="14.00">history_date_time</text> + <text text-anchor="start" x="1404" y="-543.3" font-family="Helvetica,sans-Serif" font-size="14.00">history_modification_time</text> <text text-anchor="start" x="1586" y="-543.3" font-family="Helvetica,sans-Serif" font-size="14.00"> </text> <text text-anchor="start" x="1594" y="-543.3" font-family="Helvetica,sans-Serif" font-size="14.00">timestamptz not null</text> <text text-anchor="start" x="1404" y="-524.3" font-family="Helvetica,sans-Serif" font-size="14.00">history_method</text> @@ -5650,7 +5650,7 @@ <h2>Tables</h2> </tr> <tr> <td class="spacer"></td> - <td class="minwidth">history_date_time</td> + <td class="minwidth">history_modification_time</td> <td class="minwidth">timestamptz not null</td> </tr> <tr> @@ -5676,12 +5676,12 @@ <h2>Tables</h2> <tr> <td class="spacer"></td> <td class="minwidth">history_entry_class</td> - <td class="minwidth">text</td> + <td class="minwidth">text not null</td> </tr> <tr> <td class="spacer"></td> <td class="minwidth">repo_id</td> - <td class="minwidth">text</td> + <td class="minwidth">text not null</td> </tr> <tr> <td class="spacer"></td> @@ -11344,7 +11344,7 @@ <h2>Tables</h2> </tr> <tr> <td class="spacer"></td> - <td class="minwidth">history_date_time</td> + <td class="minwidth">history_modification_time</td> <td class="minwidth">timestamptz not null</td> </tr> <tr> @@ -11564,7 +11564,7 @@ <h2>Tables</h2> </tr> <tr> <td class="spacer"></td> - <td class="minwidth">history_date_time</td> + <td class="minwidth">history_modification_time</td> <td class="minwidth">timestamptz not null</td> </tr> <tr> @@ -13181,7 +13181,7 @@ <h2>Tables</h2> </tr> <tr> <td class="spacer"></td> - <td class="minwidth">history_date_time</td> + <td class="minwidth">history_modification_time</td> <td class="minwidth">timestamptz not null</td> </tr> <tr> diff --git a/db/src/main/resources/sql/flyway.txt b/db/src/main/resources/sql/flyway.txt index e161a42be2f..9f71b575580 100644 --- a/db/src/main/resources/sql/flyway.txt +++ b/db/src/main/resources/sql/flyway.txt @@ -158,3 +158,7 @@ V157__console_epp_action_history_indexes.sql V158__registrar_poc_update_history_indexes.sql V159__registrar_update_history_indexes.sql V160__user_update_history_indexes.sql +V161__rename_console_epp_history_time.sql +V162__rename_console_poc_history_time.sql +V163__rename_console_registrar_history_time.sql +V164__rename_console_user_history_time.sql diff --git a/db/src/main/resources/sql/flyway/V161__rename_console_epp_history_time.sql b/db/src/main/resources/sql/flyway/V161__rename_console_epp_history_time.sql new file mode 100644 index 00000000000..f8e6c356664 --- /dev/null +++ b/db/src/main/resources/sql/flyway/V161__rename_console_epp_history_time.sql @@ -0,0 +1,16 @@ +-- 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 "ConsoleEppActionHistory" RENAME COLUMN history_date_time + TO history_modification_time; diff --git a/db/src/main/resources/sql/flyway/V162__rename_console_poc_history_time.sql b/db/src/main/resources/sql/flyway/V162__rename_console_poc_history_time.sql new file mode 100644 index 00000000000..7081beccaf4 --- /dev/null +++ b/db/src/main/resources/sql/flyway/V162__rename_console_poc_history_time.sql @@ -0,0 +1,16 @@ +-- 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 "RegistrarPocUpdateHistory" RENAME COLUMN history_date_time + TO history_modification_time; diff --git a/db/src/main/resources/sql/flyway/V163__rename_console_registrar_history_time.sql b/db/src/main/resources/sql/flyway/V163__rename_console_registrar_history_time.sql new file mode 100644 index 00000000000..f84404abcf3 --- /dev/null +++ b/db/src/main/resources/sql/flyway/V163__rename_console_registrar_history_time.sql @@ -0,0 +1,16 @@ +-- 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 "RegistrarUpdateHistory" RENAME COLUMN history_date_time + TO history_modification_time; diff --git a/db/src/main/resources/sql/flyway/V164__rename_console_user_history_time.sql b/db/src/main/resources/sql/flyway/V164__rename_console_user_history_time.sql new file mode 100644 index 00000000000..2438e1cf87d --- /dev/null +++ b/db/src/main/resources/sql/flyway/V164__rename_console_user_history_time.sql @@ -0,0 +1,16 @@ +-- 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" RENAME COLUMN history_date_time + TO history_modification_time; diff --git a/db/src/main/resources/sql/schema/nomulus.golden.sql b/db/src/main/resources/sql/schema/nomulus.golden.sql index 67b0d571b6f..44974b6e9d2 100644 --- a/db/src/main/resources/sql/schema/nomulus.golden.sql +++ b/db/src/main/resources/sql/schema/nomulus.golden.sql @@ -255,7 +255,7 @@ ALTER SEQUENCE public."ClaimsList_revision_id_seq" OWNED BY public."ClaimsList". CREATE TABLE public."ConsoleEppActionHistory" ( history_revision_id bigint NOT NULL, - history_date_time timestamp with time zone NOT NULL, + history_modification_time timestamp with time zone NOT NULL, history_method text NOT NULL, history_request_body text, history_type text NOT NULL, @@ -985,7 +985,7 @@ CREATE TABLE public."RegistrarPoc" ( CREATE TABLE public."RegistrarPocUpdateHistory" ( history_revision_id bigint NOT NULL, - history_date_time timestamp with time zone NOT NULL, + history_modification_time timestamp with time zone NOT NULL, history_method text NOT NULL, history_request_body text, history_type text NOT NULL, @@ -1014,7 +1014,7 @@ CREATE TABLE public."RegistrarPocUpdateHistory" ( CREATE TABLE public."RegistrarUpdateHistory" ( history_revision_id bigint NOT NULL, - history_date_time timestamp with time zone NOT NULL, + history_modification_time timestamp with time zone NOT NULL, history_method text NOT NULL, history_request_body text, history_type text NOT NULL, @@ -1325,7 +1325,7 @@ CREATE TABLE public."User" ( CREATE TABLE public."UserUpdateHistory" ( history_revision_id bigint NOT NULL, - history_date_time timestamp with time zone NOT NULL, + history_modification_time timestamp with time zone NOT NULL, history_method text NOT NULL, history_request_body text, history_type text NOT NULL,