mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +01:00
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:
parent
c2d5f2d253
commit
878875dd34
2 changed files with 2 additions and 4 deletions
|
@ -54,7 +54,7 @@ echo "; relay pid[s]: $(pidof xwrelay)"
|
|||
echo "Row count:" $(psql -t xwgames -c "select count(*) FROM games $QUERY;")
|
||||
|
||||
# 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;" \
|
||||
| psql xwgames
|
||||
|
||||
|
|
|
@ -49,8 +49,6 @@ cid integer
|
|||
,pub BOOLEAN
|
||||
,connName VARCHAR(64) UNIQUE PRIMARY KEY
|
||||
,nTotal INTEGER
|
||||
,nJoined INTEGER DEFAULT 0
|
||||
,jtimes TIMESTAMP(0)[]
|
||||
,clntVers INTEGER[]
|
||||
,nPerDevice INTEGER[]
|
||||
,seeds INTEGER[]
|
||||
|
@ -61,7 +59,7 @@ cid integer
|
|||
,addrs INET[]
|
||||
,devids INTEGER[]
|
||||
,tokens INTEGER[]
|
||||
,CHECK (nJoined <= nTotal))
|
||||
);
|
||||
EOF
|
||||
|
||||
cat <<-EOF | psql $DBNAME --file -
|
||||
|
|
Loading…
Reference in a new issue