Contents
- Basic Concepts
- Models and Schemas
- Column Types
- Collections
- Filtering
- Groups
- Inverting Filters (not)
- Back references
- Advanced Filters
- Creating Your Own Filter
- Default Filters
- Relationships
- Data Decorators
- Data Storage and Typing
- Repositories
- Data Typing and Data Transforms
- Advanced Techniques
- Joins and Intersections
- Aggregates
- Model Events
- Custard Commands
- Updating DocBlock comments
- Migrating Schemas
- Common Patterns and Anti-Patterns
- Inter-Model Strategies
Migrating Schemas
The stem:update-schemas
command forcibly checks all models in a schema against the
existing schema definition in the repository and migrations the schema if required.
bin/custard stem:update-schemas
The command needs access to the repository so needs to be run in a context where the stem settings provide the correct details (e.g. ran from inside a vagrant box or docker container).
The command will prompt you to select which schema you want to check.
Note, this requires setting up custard and ensuring you've
added the StemModule as a requirement in your application's getModules()
function.