mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00:00
Fixed chore upgrade handling when having nonsensical user data (fixes #1826)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
UPDATE chores
|
||||
SET period_type = 'daily',
|
||||
period_interval = period_days,
|
||||
period_interval = CASE WHEN IFNULL(period_days, 0) = 0 THEN 1 ELSE period_days END,
|
||||
period_days = null
|
||||
WHERE period_type = 'dynamic-regular';
|
||||
|
||||
|
Reference in New Issue
Block a user