I think reliable data and schema changes depend on practices that help a team get better over time: useful tools, robust documentation, and experience. I also recommend specific tools for MySQL and have a tentative positive impression of a PostgreSQL tool I have not tried. For protecting transformed data, I recommend keeping an append-only, backed-up log of key operations that can be reviewed and replayed. These practices connect to documentation and specifications and git and change workflows.
I said this work is “a right pain to do at first” and “gets easier as you put tools in place to help with it and write robust documentation and build experience as a team.”
I recommend two linked tools for this work with MySQL: https://t.co/cSOftblRi1 and https://t.co/Moa3jVlNLy.
I said the PostgreSQL tool “https://t.co/Gxe4cX6Nvw looks good, but I haven't tried it myself”.
I recommend protecting data through an append-only (backed up) log of key operations that transform data.
I said that you can review that log and replay it should the need arise.
Related: sql and database design, ai powered data querying, cloud service deprecations