Rename unit.short_name => name and .long_name => comment
We’ve just changed the ingredients editor to autocreate missing units implicitly. For new units short_name
and long_name
are the same anyway. We practically have only 1 name anymore.
For users this has been confusing. Many of our entities have a name and a comment.
- short name→name
- long name→comment
-
rename columns -
make comment optional (empty string, never NULL) - create migration
-
adjust tables -
set comment=''
ifshort_name = long_name
-
-
adjust code - adjust UI
-
index of units -
unit editor -
unit creator
-
- adjust rendering
-
in purchase list -
in ingredients editor
-
Edited by Daniel Böhmer