mirror of
https://github.com/google/nomulus
synced 2026-10-01 12:16:02 +00:00
Create SQL schema for RdeRevision (#835)
* Create SQL schema for RdeRevision * Split RdeRevision IDs into three separate DB fields as unified pkey * Rename variable * Merge remote-tracking branch 'origin/master' into rdeRevision * Rename variable in one other location * Implement no-op toDatastore/Sql for RdeRevision * Responses to CR * Merge remote-tracking branch 'origin/master' into rdeRevision * Use a date for the date column * Fix exception messages in tests * Regen diagram to fix the test * Use assignment in static factory methods * Merge remote-tracking branch 'origin/master' into rdeRevision
This commit is contained in:
@@ -494,6 +494,15 @@
|
||||
primary key (revision_id)
|
||||
);
|
||||
|
||||
create table "RdeRevision" (
|
||||
date date not null,
|
||||
mode text not null,
|
||||
tld text not null,
|
||||
update_timestamp timestamptz,
|
||||
revision int4 not null,
|
||||
primary key (date, mode, tld)
|
||||
);
|
||||
|
||||
create table "Registrar" (
|
||||
registrar_id text not null,
|
||||
allowed_tlds text[],
|
||||
|
||||
@@ -682,6 +682,19 @@ CREATE SEQUENCE public."PremiumList_revision_id_seq"
|
||||
ALTER SEQUENCE public."PremiumList_revision_id_seq" OWNED BY public."PremiumList".revision_id;
|
||||
|
||||
|
||||
--
|
||||
-- Name: RdeRevision; Type: TABLE; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
CREATE TABLE public."RdeRevision" (
|
||||
tld text NOT NULL,
|
||||
mode text NOT NULL,
|
||||
date date NOT NULL,
|
||||
update_timestamp timestamp with time zone,
|
||||
revision integer NOT NULL
|
||||
);
|
||||
|
||||
|
||||
--
|
||||
-- Name: Registrar; Type: TABLE; Schema: public; Owner: -
|
||||
--
|
||||
@@ -1166,6 +1179,14 @@ ALTER TABLE ONLY public."PremiumList"
|
||||
ADD CONSTRAINT "PremiumList_pkey" PRIMARY KEY (revision_id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: RdeRevision RdeRevision_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public."RdeRevision"
|
||||
ADD CONSTRAINT "RdeRevision_pkey" PRIMARY KEY (tld, mode, date);
|
||||
|
||||
|
||||
--
|
||||
-- Name: RegistrarPoc RegistrarPoc_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
Reference in New Issue
Block a user