mnohosten/migrano

Migrano is database agnostic migration library that is very easy to implement in any project.

v1.0.0 2018-03-15 18:11 UTC

This package is auto-updated.

Last update: 2024-09-28 19:04:19 UTC


README

Author Build Status Software License

Migrano is database (or purpose) agnostic migration tool. It's made with easy of use in mind. Migrano doesn't requires any specific configuration of database setup. Instead of that it lets you define migration dependencies with dependency injection container. What you are doing in your migrations is absolutely on you.

Migrano expects that you are using implementation of PSR-11 container like league/container, pimple/pimple, etc.

How to use it?

  1. Write migrations in specific directory
  2. Define migration Application instance
  3. Define which migration action you want execute
  4. Run migration action

Migrano intentionally does not contain any binary execution like Phinx or other migration libraries because it's very easy to implement by yourself.

See examples to know more.

Why do you need Migrano?

  • You want to use other database than classic RDBMS and you need to deal with schema or mapping updates.
  • You can use Migrano also if your action needs rollback. For example installation of your application and reverse steps on error.

===

If you found this library useful. Let me know on twitter.