aboutsummaryrefslogtreecommitdiff
path: root/clean/clean.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-09-05 21:23:41 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-09-08 17:44:57 +0300
commit70c1cdfd8f34472761fe5ec97f0713990c1b4f5b (patch)
treef2e631c10563bcc0cde07e4359c11b800a188d86 /clean/clean.cxx
parent3be834183ae36c321e4b560dce9a63cee846e63d (diff)
Add multi-tenancy support
Diffstat (limited to 'clean/clean.cxx')
-rw-r--r--clean/clean.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/clean/clean.cxx b/clean/clean.cxx
index 1071123..102b165 100644
--- a/clean/clean.cxx
+++ b/clean/clean.cxx
@@ -134,7 +134,9 @@ try
using prep_bld_query = prepared_query<build>;
size_t offset (0);
- bld_query bq ("ORDER BY" + bld_query::id.package.name +
+ bld_query bq ("ORDER BY" +
+ bld_query::id.package.tenant + "," +
+ bld_query::id.package.name +
order_by_version_desc (bld_query::id.package.version, false) +
"OFFSET" + bld_query::_ref (offset) + "LIMIT 100");