Database schema upgrade code and user metadata JSON upgrade schema