We are introducing new feature in our Web App and our database should react appropriately on new version rollout to Prod. As an example, set 0 value to table T1 for column C1 in case column C2 in Table T2 has true value.
What is the best way to change data on next rollout?
Also, we do not want that same data would be changed on next redeploy of the same product version.
So maybe it should be maybe some database trigger that will be invoked on rollout only.
Are there some common solutions for such sort of new features introductions?