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

View File

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