Install the Emigrate CLI
Pick a storage plugin
Emigrate uses a storage plugin to store the migration history.
Install the plugin you want to use, for example the PostgreSQL Storage:
Create your first migration
Create a new migration file in your project using:
Fill the migration file
Open the migration file in your editor and fill it with your SQL query:
Show migration status
To show both pending and already applied migrations (or previously failed), use the list
command:
Running the migrations
A good way to test your configuration is to run the migrations in dry mode: