Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
Move timestamp columns to the right table
Alexis Sellier committed 3 years ago
commit 86ed10fca9a01a0f8f468c81bcea49827df79a22
parent 14690d19513d144f54db64bf1232e8ca3e22cada
1 file changed +5 -5
modified radicle-node/src/address/schema.sql
@@ -9,11 +9,7 @@ create table if not exists "nodes" (
  -- Node alias.
  "alias"              text      default null,
  -- Node announcement timestamp.
-
  "timestamp"          integer   not null,
-
  -- Local time at which we last attempted to connect to this node.
-
  "last_attempt"       integer   default null,
-
  -- Local time at which we successfully connected to this node.
-
  "last_success"       integer   default null
+
  "timestamp"          integer   not null
  --
) strict;

@@ -28,6 +24,10 @@ create table if not exists "addresses" (
  "source"             text      not null,
  -- When this address was announced.
  "timestamp"          integer   not null,
+
  -- Local time at which we last attempted to connect to this node.
+
  "last_attempt"       integer   default null,
+
  -- Local time at which we successfully connected to this node.
+
  "last_success"       integer   default null,
  -- Nb. This constraint allows more than one node to share the same address.
  -- This is useful in circumstances when a node wants to rotate its key, but
  -- remain reachable at the same address. The old entry will eventually be