2021-02-22 22:23:30 +01:00
|
|
|
DROP TABLE IF EXISTS chain_sync CASCADE;
|
2021-02-03 19:40:03 +01:00
|
|
|
CREATE TABLE IF NOT EXISTS chain_sync (
|
|
|
|
id serial primary key not null,
|
|
|
|
blockchain varchar not null,
|
|
|
|
block_start int not null default 0,
|
|
|
|
tx_start int not null default 0,
|
|
|
|
block_cursor int not null default 0,
|
|
|
|
tx_cursor int not null default 0,
|
|
|
|
block_target int default null,
|
|
|
|
date_created timestamp not null,
|
|
|
|
date_updated timestamp default null
|
|
|
|
);
|