davedevelopment/phpmig — Issue #9: Submodule migrations
Author: Petah
Created: 2011-11-08 00:08:17+00:00
State: open

This is more of a feature idea.

My projects are made up of a bunch of modules. It would be good if each module could keep its own migrations, but run them as part of an application.

For example I have this directory structure:
```
project
¦ phpmig.php
+---migrations
+---modules
¦ +---cms
¦ ¦ +---migrations
¦ +---email
¦ +---migrations
+---public
¦ index.php
+---images
etc...
```
Running phpmig on the project directory should run all migrations, including ones in sub modules.

There would be of course problems with the current logging format and DI containers. Each sub module would have to have a compatible DI object for accessing the database.

I'm happy to implement this, what are you thoughts?