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

@ -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[],