karenc / db-migrator

GNU Affero General Public License v3.0
4 stars 5 forks source link

Allow multiple migrations directories / context to be specified #11

Closed karenc closed 8 years ago

karenc commented 8 years ago

generate raises an error if more than one migrations directory is specified.

This fixes the problem of multiple migrations directories being used for the same schema_migrations table.

mmulich commented 8 years ago

I can't quite tell... Does this allow for something like: --context foo --migrations-directory misc/migrations?

karenc commented 8 years ago

No, if you do --context foo --migrations-directory misc/migrations, only misc/migrations will be used because command line options always overrides the configuration from config file and context.