Dirthara Migration
What Dirthara Migration does, the concepts it works with, and where each part is documented.
Installation
Requirements and installation of Dirthara Migration.
Setting up
Building the loader, repository, and migrator from Dirthara database and schema services.
Writing migrations
The migration contract, what a valid name, index, and connection are, and the optional hooks.
Creating migrations
Generating migration files with MigrationCreator, its templates, and file naming.
Running migrations
What Migrator::migrate() checks, how it orders and runs migrations, and what happens when one fails.
Rolling back migrations
How batch and step rollback select, order, and reverse applied migrations.
Previewing migrations
What Migrator::preview() and Migrator::previewRollback() report, and what a preview does not do.
Refreshing migrations
How Migrator::refresh() rolls back every applied migration with down() and runs every migration again.
Fresh migrations
How Migrator::fresh() drops every table on the migration connections and runs every migration again.
Migration locking
How migration runs are locked against each other, and when to turn locking off.
Loading migrations
How migration files are found in a directory and loaded from any Flysystem storage.
Migration history
The migration history table, what it records, and the repository that reads and writes it.
Exceptions
Every exception Dirthara Migration throws, and when.