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 82cc7b59fe
commit f1eb1a8fe7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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,