hanami / cli

Hanami command line
MIT License
27 stars 28 forks source link

Update `db version` for new db layer #161

Closed timriley closed 3 months ago

timriley commented 3 months ago

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:

  1. Looks for all slices (app included) with a :db provider present, and groups these by their database URLs
  2. 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:

Resolves #156