Migrate Registry objects to a TLD table in Cloud SQL (#803)

* Add TLD table

* Change reservedLists to array

* Change ReservedLists back to a set

* Rename reservedListKeyConverter to ReservedListKeySetConverter

* Add a postload method
This commit is contained in:
sarahcaseybot 2020-09-17 12:47:50 -04:00 committed by GitHub
parent b6ed1982c3
commit 5b78844a94
10 changed files with 335 additions and 105 deletions

View file

@ -889,6 +889,50 @@ CREATE SEQUENCE public."SafeBrowsingThreat_id_seq"
ALTER SEQUENCE public."SafeBrowsingThreat_id_seq" OWNED BY public."Spec11ThreatMatch".id;
--
-- Name: Tld; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."Tld" (
tld_name text NOT NULL,
add_grace_period_length interval NOT NULL,
allowed_fully_qualified_host_names text[],
allowed_registrant_contact_ids text[],
anchor_tenant_add_grace_period_length interval NOT NULL,
auto_renew_grace_period_length interval NOT NULL,
automatic_transfer_length interval NOT NULL,
claims_period_end timestamp with time zone NOT NULL,
create_billing_cost_amount numeric(19,2),
create_billing_cost_currency text,
creation_time timestamp with time zone NOT NULL,
currency text NOT NULL,
dns_paused boolean NOT NULL,
dns_writers text[] NOT NULL,
drive_folder_id text,
eap_fee_schedule public.hstore NOT NULL,
escrow_enabled boolean NOT NULL,
invoicing_enabled boolean NOT NULL,
lordn_username text,
num_dns_publish_locks integer NOT NULL,
pending_delete_length interval NOT NULL,
premium_list_name text,
pricing_engine_class_name text,
redemption_grace_period_length interval NOT NULL,
renew_billing_cost_transitions public.hstore NOT NULL,
renew_grace_period_length interval NOT NULL,
reserved_list_names text[] NOT NULL,
restore_billing_cost_amount numeric(19,2),
restore_billing_cost_currency text,
roid_suffix text,
server_status_change_billing_cost_amount numeric(19,2),
server_status_change_billing_cost_currency text,
tld_state_transitions public.hstore NOT NULL,
tld_type text NOT NULL,
tld_unicode text NOT NULL,
transfer_grace_period_length interval NOT NULL
);
--
-- Name: Transaction; Type: TABLE; Schema: public; Owner: -
--
@ -1211,6 +1255,14 @@ ALTER TABLE ONLY public."Spec11ThreatMatch"
ADD CONSTRAINT "SafeBrowsingThreat_pkey" PRIMARY KEY (id);
--
-- Name: Tld Tld_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Tld"
ADD CONSTRAINT "Tld_pkey" PRIMARY KEY (tld_name);
--
-- Name: Transaction Transaction_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--