From 7b37d63940ce3f7b1d0847d4618377cbdb67eba6 Mon Sep 17 00:00:00 2001 From: Ivan Shmidt Date: Fri, 24 Jul 2020 03:43:58 +0200 Subject: [PATCH] fix(catalog): migrations --- .../20200721115244_location_update_log_latest_deduplicate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/catalog-backend/migrations/20200721115244_location_update_log_latest_deduplicate.js b/plugins/catalog-backend/migrations/20200721115244_location_update_log_latest_deduplicate.js index df43a22c56..9046f85da0 100644 --- a/plugins/catalog-backend/migrations/20200721115244_location_update_log_latest_deduplicate.js +++ b/plugins/catalog-backend/migrations/20200721115244_location_update_log_latest_deduplicate.js @@ -25,7 +25,7 @@ exports.up = function up(knex) { ) t2 ON t1.location_id = t2.location_id AND t1.created_at = t2.MAXDATE - GROUP BY t1.location_id + GROUP BY t1.location_id, t1.id ORDER BY created_at DESC; `); };