Re:When deployments are easy, code becomes simpler
by perrygeo on Wednesday September 06, 2023 @10:09PM
(#37413878)
downgrade implies that such a thing is possible. In a stateful system though, you cannot take back that which you have committed. It's quite literally impossible by definition.
[ Parent
| on HN ]
Re:When deployments are easy, code becomes simpler
by OJFord on Thursday September 07, 2023 @03:48PM
(#37424613)
No it isn't?
Forward migration: add date column, set = date(day, month, year) for existing records, drop is valid date constraint, drop day/month/year columns
Down migration: add day/month/year columns, add is valid date constraint, set day/month/year = appropriate datepart of date, drop date column
for trivial example.