I want to update some properties of our existing schema to avoid creating a new universal application. Is this possible? If so, how is it done?
Hi @Josh ,
Yes - you can make a change to the uni’s schema with the Schema Evolution feature by using the following command in the Share CLI, referencing a .json file with your new schema (e.g. evolved-schema.json).
share uni evolve --uni your-uni-name \ --schema evolved-schema.json
One caution is a schema cannot evolve to changes that are destructive or breaking changes, which includes:
- Existing types cannot be removed
- Existing properties cannot be removed
- Type changes to existing properties cannot be changed
- Required flag for an existing property cannot be changed
An example is available here: Vendia - Schema Evolution