mirror of
https://github.com/google/nomulus.git
synced 2025-04-29 19:47:51 +02:00
Add columns needed to implement pull queue alternative (#1914)
This commit is contained in:
parent
79d4be7e99
commit
4250a9d165
5 changed files with 3765 additions and 3618 deletions
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -130,3 +130,4 @@ V129__create_allocateId_sequence_alternative.sql
|
|||
V130__add_login_email_column_to_registrarpoc.sql
|
||||
V131__add_default_promo_tokens_to_registry.sql
|
||||
V132__drop_gae_user_id_from_registrar_poc.sql
|
||||
V133__add_pull_queue_replace_columns.sql
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
-- Copyright 2022 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"
|
||||
ADD COLUMN IF NOT EXISTS lordn_phase text DEFAULT 'NONE' NOT NULL;
|
||||
ALTER TABLE "DomainHistory"
|
||||
ADD COLUMN IF NOT EXISTS lordn_phase text DEFAULT 'NONE' NOT NULL;
|
||||
ALTER TABLE "HostHistory"
|
||||
ADD COLUMN IF NOT EXISTS dns_refresh_request_time timestamptz;
|
||||
ALTER TABLE "Host"
|
||||
ADD COLUMN IF NOT EXISTS dns_refresh_request_time timestamptz;
|
||||
CREATE INDEX IDXnjhib7v6fj7dhj5qydkefkl2u ON "Domain" (lordn_phase)
|
||||
WHERE lordn_phase != 'NONE';
|
||||
CREATE INDEX IDX7wg0yn3wdux3xsc4pfaljqf08 ON "Host" (dns_refresh_request_time)
|
||||
WHERE dns_refresh_request_time is not null;
|
|
@ -396,7 +396,8 @@ CREATE TABLE public."Domain" (
|
|||
transfer_repo_id text,
|
||||
transfer_poll_message_id_3 bigint,
|
||||
dns_refresh_request_time timestamp with time zone,
|
||||
current_package_token text
|
||||
current_package_token text,
|
||||
lordn_phase text DEFAULT 'NONE'::text NOT NULL
|
||||
);
|
||||
|
||||
|
||||
|
@ -485,7 +486,8 @@ CREATE TABLE public."DomainHistory" (
|
|||
transfer_repo_id text,
|
||||
transfer_poll_message_id_3 bigint,
|
||||
dns_refresh_request_time timestamp with time zone,
|
||||
current_package_token text
|
||||
current_package_token text,
|
||||
lordn_phase text DEFAULT 'NONE'::text NOT NULL
|
||||
);
|
||||
|
||||
|
||||
|
@ -595,7 +597,8 @@ CREATE TABLE public."Host" (
|
|||
superordinate_domain text,
|
||||
inet_addresses text[],
|
||||
update_timestamp timestamp with time zone,
|
||||
transfer_poll_message_id_3 bigint
|
||||
transfer_poll_message_id_3 bigint,
|
||||
dns_refresh_request_time timestamp with time zone
|
||||
);
|
||||
|
||||
|
||||
|
@ -628,7 +631,8 @@ CREATE TABLE public."HostHistory" (
|
|||
statuses text[],
|
||||
host_repo_id text NOT NULL,
|
||||
update_timestamp timestamp with time zone,
|
||||
transfer_poll_message_id_3 bigint
|
||||
transfer_poll_message_id_3 bigint,
|
||||
dns_refresh_request_time timestamp with time zone
|
||||
);
|
||||
|
||||
|
||||
|
@ -1660,6 +1664,13 @@ 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: idx8nr0ke9mrrx4ewj6pd2ag4rmr; Type: INDEX; Schema: public; Owner: -
|
||||
--
|
||||
|
@ -1898,6 +1909,13 @@ CREATE INDEX idxn898pb9mwcg359cdwvolb11ck ON public."BillingRecurrence" USING bt
|
|||
CREATE INDEX idxnb02m43jcx24r64n8rbg22u4q ON public."Domain" USING btree (admin_contact);
|
||||
|
||||
|
||||
--
|
||||
-- Name: idxnjhib7v6fj7dhj5qydkefkl2u; Type: INDEX; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
CREATE INDEX idxnjhib7v6fj7dhj5qydkefkl2u ON public."Domain" USING btree (lordn_phase) WHERE (lordn_phase <> 'NONE'::text);
|
||||
|
||||
|
||||
--
|
||||
-- Name: idxo1xdtpij2yryh0skxe9v91sep; Type: INDEX; Schema: public; Owner: -
|
||||
--
|
||||
|
|
Loading…
Add table
Reference in a new issue