karenc / db-migrator

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

Multiple migration directories within the same environment #6

Closed mmulich closed 8 years ago

mmulich commented 8 years ago

Which migration directory is found when there is more than one migration_directory entry-point registered in an environment? For example, if cnx-archive and cnx-publishing are installed in the same python environment, whichever entry-point is found last will be the one to set the value for migration_directory.

mmulich commented 8 years ago

I believe the solution to this problem is to contextualize the runtime of db-migrator. Basically, answer the question: What is the best way to specify the context of the migration?

karenc commented 8 years ago

I think this only became a problem when we started using entry points. Is it really a good idea?

My suggestion is to add an extra argument, like db-migrator migrate cnx-archive

karenc commented 8 years ago

Please have a look at #7 to see if you think it's ok.