Database migrations for Reason and OCaml
- PosgreSQL (
omigrate.postgres
) - Sqlite3 (
omigrate.sqlite3
)
opam install omigrate
esy add @opam/omigrate
Create a new migration and prepend it with a timestamp.
List the migrations with their state.
Apply all up migrations.
Apply all down migrations.
Setup the database and run all the migrations.
Delete the database.
The example provides some migrations available to test omigrate
with the different drivers.
Take a look at our Contributing Guide.