From 41a72d11dad1865acf0db48a06092c0590fc7d50 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Tue, 31 Jul 2018 17:42:07 +0200 Subject: [PATCH] Remove unneeded ORDER BY as this maybe lead to problems like in #33 --- migrations/0008.sql | 1 - 1 file changed, 1 deletion(-) diff --git a/migrations/0008.sql b/migrations/0008.sql index 05c76cd5..a0842f57 100644 --- a/migrations/0008.sql +++ b/migrations/0008.sql @@ -3,4 +3,3 @@ AS SELECT product_id, SUM(amount) AS amount, MIN(best_before_date) AS best_before_date FROM stock GROUP BY product_id -ORDER BY MIN(best_before_date) ASC