Remove period_days for old dynamic-regular chores on migration

This commit is contained in:
Bernd Bestel 2022-02-09 20:28:03 +01:00
parent 7d4c9fefa9
commit f88bad4bde
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300

View File

@ -1,6 +1,7 @@
UPDATE chores
SET period_type = 'daily',
period_interval = period_days
period_interval = period_days,
period_days = null
WHERE period_type = 'dynamic-regular';
DROP VIEW chores_current;