novemberkilo / omigrate

Database migrations for Reason and OCaml

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OCaml Migrate

Actions Status

Database migrations for Reason and OCaml

Drivers

  • PosgreSQL (omigrate.postgres)

Installation

Using Opam

opam install omigrate

Using Esy

esy add @opam/omigrate

Usage

omigrate create --dir DIR NAME

Create a new migration and prepend it with a timestamp.

omigrate ls --source SOURCE --database DATABASE

List the migrations with their state.

omigrate up --source SOURCE --database DATABASE

Apply all up migrations.

omigrate down --source SOURCE --database DATABASE

Apply all down migrations.

omigrate setup --source SOURCE --database DATABASE

Setup the database and run all the migrations.

omigrate drop --database DATABASE

Delete the database.

Contributing

Take a look at our Contributing Guide.

About

Database migrations for Reason and OCaml

License:MIT License


Languages

Language:OCaml 96.7%Language:Makefile 3.3%