Re:Please put units in names
by im3w1l on Monday March 21, 2022 @03:17PM
(#30758475)
Create a new column speed_mph. Create a trigger that makes writes to either column gets written to both (make sure to write it to avoid infinite recursion). Copy all data from speed_kmph to speed_mph. Deprecate speed_kmph. Change existing usages at your leisure. Delete speed_kmph.
[ Parent
| on HN ]
You can't just copy data, it's said to be they're factor k (i.e. 10^3) hahaha
Even switching to "speed_mph" still makes the warning/comment relevant: that just means that "m" is for "miles" and not "meters"