Update db migrate to work for multiple databases configured across the app and its slices.
To find databases to operate on, it:
Looks for all slices (app included) with a :db provider present, and groups these by their database URLs
For each database URL, finds the slice that has a config/db/ directory - this is considered the "canonical" slice for the database.
Migrates the database for each such slice.
If >1 slices have a config/db/, it prints a warning, and choose to operate on the first slice only.
The command also supports the following arguments:
--app to operate on the app's db only
--slice=slice_name to operate on a specific slice's database (in this case, we operate directly on that slice, and don't take the steps noted above to try and find the canonical slice for the database; we trust that the user has provided the right slice via this argument)
Update
db migrate
to work for multiple databases configured across the app and its slices.To find databases to operate on, it:
:db
provider present, and groups these by their database URLsconfig/db/
directory - this is considered the "canonical" slice for the database.The command also supports the following arguments:
--app
to operate on the app's db only--slice=slice_name
to operate on a specific slice's database (in this case, we operate directly on that slice, and don't take the steps noted above to try and find the canonical slice for the database; we trust that the user has provided the right slice via this argument)Resolves #151