Drop the indexs and columns for dns_refresh_request_time (#1949)

This commit is contained in:
Lai Jiang 2023-03-09 10:29:31 -05:00 committed by GitHub
parent 253aa7d9ad
commit 09d19d996d
5 changed files with 3661 additions and 3761 deletions

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -135,3 +135,4 @@ V134__drop_not_null_request_id_lock_table.sql
V135__null_gaia_id_user.sql
V136__add_dns_refresh_request_table.sql
V137__add_process_time_column.sql
V138__drop_dns_refresh_request_time_column.sql

View file

@ -0,0 +1,19 @@
-- 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 "Domain" DROP COLUMN IF EXISTS dns_refresh_request_time;
ALTER TABLE "DomainHistory" DROP COLUMN IF EXISTS dns_refresh_request_time;
ALTER TABLE "Host" DROP COLUMN IF EXISTS dns_refresh_request_time;
ALTER TABLE "HostHistory" DROP COLUMN IF EXISTS dns_refresh_request_time;

View file

@ -428,7 +428,6 @@ CREATE TABLE public."Domain" (
transfer_history_entry_id bigint,
transfer_repo_id text,
transfer_poll_message_id_3 bigint,
dns_refresh_request_time timestamp with time zone,
current_package_token text,
lordn_phase text DEFAULT 'NONE'::text NOT NULL
);
@ -518,7 +517,6 @@ CREATE TABLE public."DomainHistory" (
transfer_history_entry_id bigint,
transfer_repo_id text,
transfer_poll_message_id_3 bigint,
dns_refresh_request_time timestamp with time zone,
current_package_token text,
lordn_phase text DEFAULT 'NONE'::text NOT NULL
);
@ -630,8 +628,7 @@ CREATE TABLE public."Host" (
superordinate_domain text,
inet_addresses text[],
update_timestamp timestamp with time zone,
transfer_poll_message_id_3 bigint,
dns_refresh_request_time timestamp with time zone
transfer_poll_message_id_3 bigint
);
@ -664,8 +661,7 @@ CREATE TABLE public."HostHistory" (
statuses text[],
host_repo_id text NOT NULL,
update_timestamp timestamp with time zone,
transfer_poll_message_id_3 bigint,
dns_refresh_request_time timestamp with time zone
transfer_poll_message_id_3 bigint
);
@ -1579,13 +1575,6 @@ CREATE INDEX allocation_token_domain_name_idx ON public."AllocationToken" USING
CREATE UNIQUE INDEX database_migration_state_schedule_singleton ON public."DatabaseMigrationStateSchedule" USING btree ((true));
--
-- Name: domain_dns_refresh_request_time_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX domain_dns_refresh_request_time_idx ON public."Domain" USING btree (dns_refresh_request_time);
--
-- Name: domain_history_to_ds_data_history_idx; Type: INDEX; Schema: public; Owner: -
--
@ -1719,13 +1708,6 @@ CREATE INDEX idx6w3qbtgce93cal2orjg1tw7b7 ON public."DomainHistory" USING btree
CREATE INDEX idx73l103vc5900ig3p4odf0cngt ON public."BillingEvent" USING btree (registrar_id);
--
-- Name: idx7wg0yn3wdux3xsc4pfaljqf08; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX idx7wg0yn3wdux3xsc4pfaljqf08 ON public."Host" USING btree (dns_refresh_request_time) WHERE (dns_refresh_request_time IS NOT NULL);
--
-- Name: idx8gtvnbk64yskcvrdp61f5ied3; Type: INDEX; Schema: public; Owner: -
--