From 515923ead1c55dd2df3a6a8d30e6d12e8dfafa82 Mon Sep 17 00:00:00 2001 From: kanoi Date: Sat, 14 Jun 2014 20:42:18 +1000 Subject: [PATCH] ckdb adjust initial id defaults and correct table sizes --- sql/initid.sh | 8 ++++---- src/ckdb.c | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sql/initid.sh b/sql/initid.sh index 9e406525..78e01c11 100755 --- a/sql/initid.sh +++ b/sql/initid.sh @@ -29,7 +29,7 @@ addid() # but of course overlapping with another id doesn't technically matter now="`date +%Y%m%d`" # -addid userid ${now}100000 -addid workerid ${now}200000 -addid paymentid ${now}300000 -addid authid ${now}400000 +addid workerid ${now}100000 +addid paymentid ${now}200000 +addid authid ${now}300000 +addid userid ${now}400000 diff --git a/src/ckdb.c b/src/ckdb.c index 35f9338e..aca4713f 100644 --- a/src/ckdb.c +++ b/src/ckdb.c @@ -1744,7 +1744,7 @@ static bool workinfo_fill(PGconn *conn) int par; char *field; char *sel; - int fields = 8; + int fields = 11; bool ok; LOGDEBUG("%s(): select", __func__); @@ -2155,7 +2155,7 @@ static bool auths_fill(PGconn *conn) int par; char *field; char *sel; - int fields = 11; + int fields = 6; bool ok; LOGDEBUG("%s(): select", __func__);