A useful primer on how to use migration files in Craft.
MigraÂtions are PHP files that conÂtain code which alters the dataÂbase from one state to anothÂer.
The core commands are as follows.
Run any waiting migrations, specifically the safeUp() functions:
php craft upRerun the last migration (undoes the previous migration and runs the file(s) again, so any changes are automatically applied):
php craft migrate/redo --interactive=0Revert the previous migration (runs the safeDown() function):
php craft migrate/down --interactive=0