revert DB changes -- don't need 'em now

It'll be a lot easier moving the relay forward if I can not change the
DB.
This commit is contained in:
Eric House 2017-11-11 13:26:44 -08:00
parent c2d5f2d253
commit 878875dd34
2 changed files with 2 additions and 4 deletions

View file

@ -54,7 +54,7 @@ echo "; relay pid[s]: $(pidof xwrelay)"
echo "Row count:" $(psql -t xwgames -c "select count(*) FROM games $QUERY;") echo "Row count:" $(psql -t xwgames -c "select count(*) FROM games $QUERY;")
# Games # Games
echo "SELECT dead as d,connname,room,lang as lg,clntVers as cv ,ntotal as t,njoined as nj,nperdevice as npd,nsents as snts, seeds,devids,tokens,ack, mtimes "\ echo "SELECT dead as d,connname,room,lang as lg,clntVers as cv ,ntotal as t,nperdevice as npd,nsents as snts, seeds,devids,tokens,ack, mtimes "\
"FROM games $QUERY ORDER BY NOT dead, ctime DESC LIMIT $LIMIT;" \ "FROM games $QUERY ORDER BY NOT dead, ctime DESC LIMIT $LIMIT;" \
| psql xwgames | psql xwgames

View file

@ -49,8 +49,6 @@ cid integer
,pub BOOLEAN ,pub BOOLEAN
,connName VARCHAR(64) UNIQUE PRIMARY KEY ,connName VARCHAR(64) UNIQUE PRIMARY KEY
,nTotal INTEGER ,nTotal INTEGER
,nJoined INTEGER DEFAULT 0
,jtimes TIMESTAMP(0)[]
,clntVers INTEGER[] ,clntVers INTEGER[]
,nPerDevice INTEGER[] ,nPerDevice INTEGER[]
,seeds INTEGER[] ,seeds INTEGER[]
@ -61,7 +59,7 @@ cid integer
,addrs INET[] ,addrs INET[]
,devids INTEGER[] ,devids INTEGER[]
,tokens INTEGER[] ,tokens INTEGER[]
,CHECK (nJoined <= nTotal)) );
EOF EOF
cat <<-EOF | psql $DBNAME --file - cat <<-EOF | psql $DBNAME --file -