2017 © Pedro Peláez
 

library mongodb-migrations

Library to migrate forward and backward in mongodb.

image

mi/mongodb-migrations

Library to migrate forward and backward in mongodb.

  • Wednesday, April 27, 2016
  • by mi24administrator
  • Repository
  • 1 Watchers
  • 0 Stars
  • 486 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 1 % Grown

The README.md

MongoDB Migrations

Build Status Latest Stable Version Latest Unstable Version Total Downloads License, (*1)

Overview

..., (*2)

Installation

Composer

for PHP 7 and greater with the new mongoDB-extension

composer require mi/mongodb-migrations

for other PHP-Versions

composer require mi/mongodb-migrations ^1.0.0@beta

Puli-Bindings

MY_BUNDLE_ALIAS = the alias of your bundle (for example my_awesome_bundle), (*3)

puli bind --class Mi\\MongoDb\\Migration\\DependencyInjection\\MigrationPlugin Matthias\\BundlePlugins\\BundlePlugin --param bundle-alias=<MY_BUNDLE_ALIAS>
puli bind /mi/mongodb-migrations/*.xml mi/service
puli build

Configuration

my_awesome_bundle:
    ...

    migration:
        path: '/path/to/version/class/directory'                            // path where versions will be constructed
        xml_path: '/path/to/version/service-definition/file'                // service-definitions where versions will be defined
        namespace: "namespace\\of\\generated\\versions"                     // namespace versions will be constructed with
        migration_collection: 'migration.collection.service.definition.id'  // need to be from type MongoCollection

refresh autoloader

add namespace namespace\\of\\generated\\versions to autoloader and execute, (*4)

composer dump-autoload

Usage

create version

console mi:mongo-db:migration:generate

execute migration

console mi:mongo-db:migration:migrate

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

This library is under the MIT license., (*5)

The Versions

27/04 2016

2.0.x-dev

2.0.9999999.9999999-dev

Library to migrate forward and backward in mongodb.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Miehe

mongodb plugin migration puli

27/04 2016

v2.0.0-beta2

2.0.0.0-beta2

Library to migrate forward and backward in mongodb.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Miehe

mongodb plugin migration puli

27/04 2016

dev-master

9999999-dev

Library to migrate forward and backward in mongodb.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Miehe

mongodb plugin migration puli

27/04 2016

v1.0.0-beta2

1.0.0.0-beta2

Library to migrate forward and backward in mongodb.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Miehe

mongodb plugin migration puli

25/04 2016

v2.0.0-beta

2.0.0.0-beta

Library to migrate forward and backward in mongodb.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Miehe

mongodb plugin migration puli

25/04 2016

v1.0.0-beta

1.0.0.0-beta

Library to migrate forward and backward in mongodb.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexander Miehe

mongodb plugin migration puli