Add SQL replay checkpoint object to SQL (#868)

* Add SQL replay checkpoint object to Datastore

This will be part of the asynchronous commit-log replay to SQL. Whenever
we successfully export commits up to a particular time, we should
persist that time so we don't replay the same commits again (it is not
idempotent)

* Move SqlReplayCheckpoint from DS to SQL

* Responses to CR
This commit is contained in:
gbrodman 2020-11-10 17:09:18 -05:00 committed by GitHub
parent c022aa8dc5
commit 03c246d08d
12 changed files with 387 additions and 107 deletions

View file

@ -655,6 +655,12 @@
primary key (id)
);
create table "SqlReplayCheckpoint" (
revision_id int8 not null,
last_replay_time timestamptz,
primary key (revision_id)
);
create table "Tld" (
tld_name text not null,
add_grace_period_length interval not null,