Fix potential problem (again) when running/upgrading grocy v3.0.0 with SQLite > 3.8.3 < 3.9.0 (references #1209)

This commit is contained in:
Bernd Bestel 2020-12-23 11:54:39 +01:00
parent f1efd08bc6
commit 97b95803b8
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300

View File

@ -72,7 +72,7 @@ FROM (
FROM stock_current
WHERE best_before_date IS NOT NULL
UNION
SELECT m.id, 0, 0, 0, null, 0, 0, 0, p.due_type
SELECT m.id, 0, 0, 0, null, 0, 0, 0
FROM stock_missing_products m
JOIN products p
ON m.id = p.id