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__);