package omigrate
Build not checkedInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha256=b9ab8bcb23153797057635dabb45492694ff9ccea2bf16e7569d6c926eacf98d
sha512=ab555df902120771507c66bbae317f89fcf31836697213fe5c09d8bdf1596128902f04b7b1017c4d9f9645ec0a0643b18c8608e580ceabdd96ad73146249cfb9
Description
Database migrations for Reason and OCaml
Added to opam-repository:
README
OCaml Migrate
Database migrations for Reason and OCaml
Drivers
- PosgreSQL (
omigrate.postgres) - Sqlite3 (
omigrate.sqlite3)
Installation
Using Opam
opam install omigrateUsing Esy
esy add @opam/omigrateUsage
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.
Examples
The example provides some migrations available to test omigrate with the different drivers.
Contributing
Take a look at our Contributing Guide.
Dependencies (11)
Dev Dependencies
None
Optional Dependencies
None
Used by
None
Conflicts
None
Build status
Results of building omigrate with each compiler on check.ci.ocaml.org, run of against opam-repository 8d8d144. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
This version is not in the latest run; the versions below are.
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure