Skip to content

Commit

Permalink
Rename console update mod time to history_modification_time (#2363)
Browse files Browse the repository at this point in the history
  • Loading branch information
gbrodman committed Mar 12, 2024
1 parent 6acb14c commit 0f02858
Show file tree
Hide file tree
Showing 8 changed files with 102 additions and 34 deletions.
10 changes: 5 additions & 5 deletions db/src/main/resources/sql/er_diagram/brief_er_diagram.html
Original file line number Diff line number Diff line change
Expand Up @@ -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:41.339823732</td>
<td class="property_value">2024-03-11 20:42:54.463293864</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>
Expand All @@ -280,7 +280,7 @@ <h2>System Information</h2>
<text text-anchor="start" x="3730.5" y="-29.8" font-family="Helvetica,sans-Serif" font-size="14.00">generated by</text>
<text text-anchor="start" x="3813.5" y="-29.8" font-family="Helvetica,sans-Serif" font-size="14.00">SchemaCrawler 16.10.1</text>
<text text-anchor="start" x="3729.5" y="-10.8" font-family="Helvetica,sans-Serif" font-size="14.00">generated on</text>
<text text-anchor="start" x="3813.5" y="-10.8" font-family="Helvetica,sans-Serif" font-size="14.00">2024-02-28 21:05:41.339823732</text>
<text text-anchor="start" x="3813.5" y="-10.8" font-family="Helvetica,sans-Serif" font-size="14.00">2024-03-11 20:42:54.463293864</text>
<polygon fill="none" stroke="#888888" points="3726,-4 3726,-44 4013,-44 4013,-4 3726,-4" /> <!-- allocationtoken_a08ccbef -->
<g id="node1" class="node">
<title>
Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down
50 changes: 25 additions & 25 deletions db/src/main/resources/sql/er_diagram/full_er_diagram.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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>
Expand Down Expand Up @@ -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 -->
Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand All @@ -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>
Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down
4 changes: 4 additions & 0 deletions db/src/main/resources/sql/flyway.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
@@ -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;
Original file line number Diff line number Diff line change
@@ -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;
Original file line number Diff line number Diff line change
@@ -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;
Original file line number Diff line number Diff line change
@@ -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;
8 changes: 4 additions & 4 deletions db/src/main/resources/sql/schema/nomulus.golden.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 0f02858

Please sign in to comment.