Update db version to work for multiple databases configured across the app and its slices.
To find databases to operate on, it uses the same approach devised in #160:
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.
The command also supports the following arguments:
--app to use the app's db only
--slice=slice_name to use the db for a specific slice (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 version
to work for multiple databases configured across the app and its slices.To find databases to operate on, it uses the same approach devised in #160:
: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 use the app's db only--slice=slice_name
to use the db for a specific slice (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 #156