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:
gbrodman 2020-10-23 13:14:07 -04:00 committed by GitHub
parent 9ddde4799c
commit 3ed3b351d0
11 changed files with 895 additions and 525 deletions

View file

@ -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: -
--