mirror of
https://github.com/google/nomulus.git
synced 2025-08-17 15:04:06 +02:00
Create a converter for sets of InetAddresses and use it in HostResource (#612)
* Create a converter for sets of inetAddresses and use it in HostResource This can just be a set of strings where each string represents an address; there's no need for it to be a separate table. This allows for simplification of the SQL schema. * Regenerate golden SQL file after renaming v28 -> v29 * Add more tests and rename a typo in the file * Refactor common test code and use tm methods * Use JUnit5 API * Rename test entity
This commit is contained in:
parent
fdac686250
commit
40b14fb695
7 changed files with 141 additions and 31 deletions
|
@ -348,17 +348,8 @@ CREATE TABLE public."HostResource" (
|
|||
fully_qualified_host_name text,
|
||||
last_superordinate_change timestamp with time zone,
|
||||
last_transfer_time timestamp with time zone,
|
||||
superordinate_domain text
|
||||
);
|
||||
|
||||
|
||||
--
|
||||
-- Name: HostResource_inetAddresses; Type: TABLE; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
CREATE TABLE public."HostResource_inetAddresses" (
|
||||
host_resource_repo_id text NOT NULL,
|
||||
inet_addresses bytea
|
||||
superordinate_domain text,
|
||||
inet_addresses text[]
|
||||
);
|
||||
|
||||
|
||||
|
@ -1095,14 +1086,6 @@ ALTER TABLE ONLY public."ClaimsEntry"
|
|||
ADD CONSTRAINT fk6sc6at5hedffc0nhdcab6ivuq FOREIGN KEY (revision_id) REFERENCES public."ClaimsList"(revision_id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: HostResource_inetAddresses fk6unwhfkcu3oq6q347fxvpagv; Type: FK CONSTRAINT; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public."HostResource_inetAddresses"
|
||||
ADD CONSTRAINT fk6unwhfkcu3oq6q347fxvpagv FOREIGN KEY (host_resource_repo_id) REFERENCES public."HostResource"(repo_id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: Contact fk93c185fx7chn68uv7nl6uv2s0; Type: FK CONSTRAINT; Schema: public; Owner: -
|
||||
--
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue