1: Introduction to Schema Change Management
How to think about schema change management and preparing your project for this course's exercises.
2: Updating the schema to match imported content
Check document validation status across a whole dataset. Update schema with missing fields for content that's found in the dataset's documents.
3: Changing a field name
Rename fields by first deprecating existing ones and marking them read only
4: Adapting a front end without downtime
Prepare a front end for down-time-less content migration by adapting a GROQ query with coalesce()
5: Writing a content migration
Use Sanity CLI to create a new content migration. Adapt the migration script for your use case.
6: Running a content migration
Use field validation to validate if the migration was successful. Back up the dataset for safe measure. Run the content migration and verify that it went well.
7: Tidy up the schema and front end code
Tidy up the document form by hiding the old field. Update your front end to only query and access the new field name.
8: Making the content migration (more) idempotent
Make it safe(r) to run the content migration multiple times using GROQ filters and idempotency keys.