dcardon / play-migrate

Database version migration module for use in the Play! framework
10 stars 2 forks source link

migrating multiple databases won't work if there is a space before the db name in the conf file #2

Closed glenjr closed 13 years ago

glenjr commented 14 years ago

If your application has multiple db's defined in the conf file, only the first db in the list will be updated if there is a space between the names. For example, if the conf file looks like: "migrate.module.dbs=db1, db2" patches for db2 will not be run. the database will be created but the patches aren't run. However if you modify the conf file to look like: "migrate.module.dbs=db1,db2" it works great. Creating both dbs and running the patches for both.

glenjr

dcardon commented 13 years ago

Thanks for the notice. I've fixed the issue in the latest version, so that database names are trimmed.

--Dave