Database migrations for Reason and OCaml
- PosgreSQL (
omigrate.postgres
)
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.
Take a look at our Contributing Guide.