Skip to content

Commit

Permalink
Merge pull request #29 from i25959341/feature/p2p-10334
Browse files Browse the repository at this point in the history
Feature - P2P 10334 Status
  • Loading branch information
f27d authored Jul 2, 2018
2 parents b651d11 + 157e611 commit cbc84c9
Show file tree
Hide file tree
Showing 11 changed files with 746 additions and 476 deletions.
19 changes: 13 additions & 6 deletions create_table_queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,17 @@ CREATE TABLE IF NOT EXISTS online_history (
online boolean
);

CREATE TABLE IF NOT EXISTS rcp_http_status_history (
CREATE TABLE IF NOT EXISTS rpc_http_status_history (
id serial PRIMARY KEY,
ts TIMESTAMP WITHOUT TIME zone,
address_id INTEGER REFERENCES address(id) ,
rcp_http_status boolean);
rpc_http_status boolean);

CREATE TABLE IF NOT EXISTS rcp_https_status_history (
CREATE TABLE IF NOT EXISTS rpc_https_status_history (
id serial PRIMARY KEY,
ts TIMESTAMP WITHOUT TIME zone,
address_id INTEGER REFERENCES address(id) ,
rcp_https_status boolean);
rpc_https_status boolean);

CREATE TABLE IF NOT EXISTS locale (
id bigserial PRIMARY key,
Expand Down Expand Up @@ -129,15 +129,22 @@ CREATE TABLE IF NOT EXISTS p2p_tcp_status_history (
p2p_tcp_status BOOLEAN
);

CREATE TABLE IF NOT EXISTS p2p_ws_status_history (
id bigserial PRIMARY key,
ts TIMESTAMP WITHOUT TIME zone,
address_id INTEGER REFERENCES address(id),
p2p_ws_status BOOLEAN
);

DROP TABLE port;
DROP TABLE version_history;
DROP TABLE blockheight_history;
DROP TABLE latency_history;
DROP TABLE mempool_size_history;
DROP TABLE connection_counts_history;
DROP TABLE online_history;
DROP TABLE rcp_http_status_history;
DROP TABLE rcp_https_status_history;
DROP TABLE rpc_http_status_history;
DROP TABLE rpc_https_status_history;
DROP TABLE edges;
DROP TABLE ip;
DROP TABLE locale;
Expand Down
Loading

0 comments on commit cbc84c9

Please sign in to comment.