mirror of
https://github.com/google/nomulus
synced 2026-09-18 22:14:23 +00:00
Add loadOnlyOf method to tm() (#1162)
* Add loadOnlyOf method to tm() In addition there's a bit of a refator of SqlReplayCheckpoint to make it more in line with the other singletons. This method is useful for the singleton classes where we expect at most one entity to exist, e.g. ServerSecret.
This commit is contained in:
@@ -695,9 +695,9 @@
|
||||
);
|
||||
|
||||
create table "SqlReplayCheckpoint" (
|
||||
revision_id int8 not null,
|
||||
last_replay_time timestamptz,
|
||||
primary key (revision_id)
|
||||
id int8 not null,
|
||||
last_replay_time timestamptz not null,
|
||||
primary key (id)
|
||||
);
|
||||
|
||||
create table "Tld" (
|
||||
|
||||
@@ -998,7 +998,7 @@ ALTER SEQUENCE public."SignedMarkRevocationList_revision_id_seq" OWNED BY public
|
||||
--
|
||||
|
||||
CREATE TABLE public."SqlReplayCheckpoint" (
|
||||
revision_id bigint NOT NULL,
|
||||
id bigint NOT NULL,
|
||||
last_replay_time timestamp with time zone NOT NULL
|
||||
);
|
||||
|
||||
@@ -1415,7 +1415,7 @@ ALTER TABLE ONLY public."SignedMarkRevocationList"
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public."SqlReplayCheckpoint"
|
||||
ADD CONSTRAINT "SqlReplayCheckpoint_pkey" PRIMARY KEY (revision_id);
|
||||
ADD CONSTRAINT "SqlReplayCheckpoint_pkey" PRIMARY KEY (id);
|
||||
|
||||
|
||||
--
|
||||
|
||||
Reference in New Issue
Block a user