mirror of
https://github.com/google/nomulus.git
synced 2025-05-19 02:39:34 +02:00
Add schema and DAO for cursors in cloudsql (#370)
* Add schema for Cursor * Add CursorDao and CursorDaoTest * Fix comment on getTld * Change tld column to scope * Fix cursorTime to be converted to DateTime internally and other small fixes * Add a CursorType enum and a createGlobal constructor for Cursor * Rename flyway file * Use cursorType from common/Cursor.java and add null checks
This commit is contained in:
parent
bba5aff4b6
commit
2478a4a93b
8 changed files with 370 additions and 0 deletions
|
@ -26,6 +26,14 @@
|
|||
primary key (revision_id)
|
||||
);
|
||||
|
||||
create table "Cursor" (
|
||||
scope text not null,
|
||||
type text not null,
|
||||
cursor_time timestamptz not null,
|
||||
last_update_time timestamptz not null,
|
||||
primary key (scope, type)
|
||||
);
|
||||
|
||||
create table "DelegationSignerData" (
|
||||
key_tag int4 not null,
|
||||
algorithm int4 not null,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue