Remove the GAIA ID column from the User table (#2172)

The field has already been removed from the Java code base in #2170.
This commit is contained in:
Lai Jiang 2023-10-11 12:47:48 -04:00 committed by GitHub
parent 2a7e9a266a
commit bbdbfe85ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 2598 additions and 2601 deletions

View file

@ -261,20 +261,20 @@ td.section {
</tr>
<tr>
<td class="property_name">generated on</td>
<td class="property_value">2023-07-07 17:30:23.191251</td>
<td class="property_value">2023-10-04 16:08:55.700762</td>
</tr>
<tr>
<td class="property_name">last flyway file</td>
<td id="lastFlywayFile" class="property_value">V146__last_update_time_via_epp.sql</td>
<td id="lastFlywayFile" class="property_value">V147__drop_gaia_id_from_user.sql</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
<svg viewbox="0.00 0.00 4029.00 3160.50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="erDiagram" style="overflow: hidden; width: 100%; height: 800px">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 3156.5)">
<svg viewbox="0.00 0.00 4029.00 3141.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="erDiagram" style="overflow: hidden; width: 100%; height: 800px">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 3137)">
<title>SchemaCrawler_Diagram</title>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-3156.5 4025,-3156.5 4025,4 -4,4" />
<polygon fill="white" stroke="transparent" points="-4,4 -4,-3137 4025,-3137 4025,4 -4,4" />
<text text-anchor="start" x="3752.5" y="-29.8" font-family="Helvetica,sans-Serif" font-size="14.00">
generated by
</text>
@ -285,7 +285,7 @@ td.section {
generated on
</text>
<text text-anchor="start" x="3835.5" y="-10.8" font-family="Helvetica,sans-Serif" font-size="14.00">
2023-07-07 17:30:23.191251
2023-10-04 16:08:55.700762
</text>
<polygon fill="none" stroke="#888888" points="3748,-4 3748,-44 4013,-44 4013,-4 3748,-4" /> <!-- allocationtoken_a08ccbef -->
<g id="node1" class="node">
@ -3191,44 +3191,36 @@ td.section {
</g> <!-- user_f2216f01 -->
<g id="node39" class="node">
<title>user_f2216f01</title>
<polygon fill="#ebcef2" stroke="transparent" points="3720.5,-3128 3720.5,-3147 3821.5,-3147 3821.5,-3128 3720.5,-3128" />
<text text-anchor="start" x="3722.5" y="-3134.8" font-family="Helvetica,sans-Serif" font-weight="bold" font-style="italic" font-size="14.00">
<polygon fill="#ebcef2" stroke="transparent" points="3720.5,-3109 3720.5,-3128 3821.5,-3128 3821.5,-3109 3720.5,-3109" />
<text text-anchor="start" x="3722.5" y="-3115.8" font-family="Helvetica,sans-Serif" font-weight="bold" font-style="italic" font-size="14.00">
public."User"
</text>
<polygon fill="#ebcef2" stroke="transparent" points="3821.5,-3128 3821.5,-3147 3931.5,-3147 3931.5,-3128 3821.5,-3128" />
<text text-anchor="start" x="3892.5" y="-3133.8" font-family="Helvetica,sans-Serif" font-size="14.00">
<polygon fill="#ebcef2" stroke="transparent" points="3821.5,-3109 3821.5,-3128 3931.5,-3128 3931.5,-3109 3821.5,-3109" />
<text text-anchor="start" x="3892.5" y="-3114.8" font-family="Helvetica,sans-Serif" font-size="14.00">
[table]
</text>
<text text-anchor="start" x="3722.5" y="-3115.8" font-family="Helvetica,sans-Serif" font-weight="bold" font-style="italic" font-size="14.00">
<text text-anchor="start" x="3722.5" y="-3096.8" font-family="Helvetica,sans-Serif" font-weight="bold" font-style="italic" font-size="14.00">
id
</text>
<text text-anchor="start" x="3815.5" y="-3114.8" font-family="Helvetica,sans-Serif" font-size="14.00">
</text>
<text text-anchor="start" x="3823.5" y="-3114.8" font-family="Helvetica,sans-Serif" font-size="14.00">
bigserial not null
</text>
<text text-anchor="start" x="3815.5" y="-3095.8" font-family="Helvetica,sans-Serif" font-size="14.00">
</text>
<text text-anchor="start" x="3823.5" y="-3095.8" font-family="Helvetica,sans-Serif" font-size="14.00">
auto-incremented
</text>
<text text-anchor="start" x="3722.5" y="-3076.8" font-family="Helvetica,sans-Serif" font-size="14.00">
email_address
bigserial not null
</text>
<text text-anchor="start" x="3815.5" y="-3076.8" font-family="Helvetica,sans-Serif" font-size="14.00">
</text>
<text text-anchor="start" x="3823.5" y="-3076.8" font-family="Helvetica,sans-Serif" font-size="14.00">
text not null
auto-incremented
</text>
<text text-anchor="start" x="3722.5" y="-3057.8" font-family="Helvetica,sans-Serif" font-size="14.00">
gaia_id
email_address
</text>
<text text-anchor="start" x="3815.5" y="-3057.8" font-family="Helvetica,sans-Serif" font-size="14.00">
</text>
<text text-anchor="start" x="3823.5" y="-3057.8" font-family="Helvetica,sans-Serif" font-size="14.00">
text
text not null
</text>
<polygon fill="none" stroke="#888888" points="3719,-3051.5 3719,-3148.5 3932,-3148.5 3932,-3051.5 3719,-3051.5" />
<polygon fill="none" stroke="#888888" points="3719,-3051 3719,-3129 3932,-3129 3932,-3051 3719,-3051" />
</g>
</g>
</svg>
@ -7114,11 +7106,6 @@ td.section {
<td class="minwidth">email_address</td>
<td class="minwidth">text not null</td>
</tr>
<tr>
<td class="spacer"></td>
<td class="minwidth">gaia_id</td>
<td class="minwidth">text</td>
</tr>
<tr>
<td colspan="3"></td>
</tr>

File diff suppressed because it is too large Load diff

View file

@ -144,3 +144,4 @@ V143__idn_per_tld.sql
V144__drop_database_migration_state_schedule_table.sql
V145__add_breakglass_mode_to_tld_table.sql
V146__last_update_time_via_epp.sql
V147__drop_gaia_id_from_user.sql

View file

@ -0,0 +1,16 @@
-- Copyright 2023 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 "User" DROP COLUMN gaia_id;

View file

@ -1115,7 +1115,6 @@ CREATE TABLE public."TmchCrl" (
CREATE TABLE public."User" (
id bigint NOT NULL,
email_address text NOT NULL,
gaia_id text,
registry_lock_password_hash text,
registry_lock_password_salt text,
global_role text NOT NULL,
@ -2135,13 +2134,6 @@ CREATE INDEX spec11threatmatch_tld_idx ON public."Spec11ThreatMatch" USING btree
CREATE INDEX user_email_address_idx ON public."User" USING btree (email_address);
--
-- Name: user_gaia_id_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX user_gaia_id_idx ON public."User" USING btree (gaia_id);
--
-- Name: Contact fk1sfyj7o7954prbn1exk7lpnoe; Type: FK CONSTRAINT; Schema: public; Owner: -
--