Merge public trial upgrade steps

- Optimize upgrade steps for the `feature_public_trial` release so we only rebuild indexes and metadata once
- Fix some mail upgrade steps so they can safely be run a second time
- Deal with broken tuple schema `default` and `missing_value` when setting default values