Fix potential problem 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-22 21:19:55 +01:00
parent cf05be35fe
commit 5f09d4def1
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300

View File

@ -30,7 +30,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_including_opened m
JOIN products p
ON m.id = p.id