add mbox_allocated to domain info
This commit is contained in:
parent
62101cd86f
commit
ccae1ba39c
@ -35,7 +35,7 @@ dbcmdopts="-e"
|
|||||||
if [[ -n $tab ]]; then
|
if [[ -n $tab ]]; then
|
||||||
dbcmdopts="-s -N $dbcmdopts"
|
dbcmdopts="-s -N $dbcmdopts"
|
||||||
fi
|
fi
|
||||||
dbquery="SELECT domain, status, mbox_limit, mbox_quota_default, mbox_ratelimit_default FROM vm_domains"
|
dbquery="SELECT domain, status, mbox_limit, (SELECT COUNT(*) FROM vm_mboxes WHERE vm_mboxes.domain_id = vm_domains.id) as mbox_allocated, mbox_quota_default, mbox_ratelimit_default FROM vm_domains"
|
||||||
|
|
||||||
# build query
|
# build query
|
||||||
if [[ -n $domain ]]; then
|
if [[ -n $domain ]]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user