From 70c1cdfd8f34472761fe5ec97f0713990c1b4f5b Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 5 Sep 2018 21:23:41 +0300 Subject: Add multi-tenancy support --- clean/clean.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'clean') 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; 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"); -- cgit v1.1