[tor-commits] [metrics-web/master] Add extrainfo column back to descriptor table.

karsten at torproject.org karsten at torproject.org
Sat Oct 20 20:51:23 UTC 2012


commit 63799e94bcaa4fed7d5979d8788c1c12fe73ac72
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date:   Fri Oct 19 20:53:58 2012 -0400

    Add extrainfo column back to descriptor table.
    
    The extrainfo column was removed from the descriptor table when we stopped
    serving raw extra-info documents.  The database import code was never
    adapted though.  Put the column back in the table as the easiest fix to
    make the two parts consistent again.
---
 db/tordir.sql |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/db/tordir.sql b/db/tordir.sql
index 8aa039c..5f533c4 100644
--- a/db/tordir.sql
+++ b/db/tordir.sql
@@ -18,6 +18,7 @@ CREATE TABLE descriptor (
     platform CHARACTER VARYING(256),
     published TIMESTAMP WITHOUT TIME ZONE NOT NULL,
     uptime BIGINT,
+    extrainfo CHARACTER(40),
     rawdesc BYTEA NOT NULL,
     CONSTRAINT descriptor_pkey PRIMARY KEY (descriptor)
 );





More information about the tor-commits mailing list