Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update db version for new db layer #161

Merged
merged 4 commits into from
Jun 4, 2024

Conversation

timriley
Copy link
Member

@timriley timriley commented Jun 3, 2024

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:

  • --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

@timriley timriley self-assigned this Jun 3, 2024
@timriley timriley marked this pull request as ready for review June 4, 2024 12:14
@timriley timriley merged commit 1fb972b into main Jun 4, 2024
@timriley timriley deleted the enable-db-version-for-new-db-layer branch June 4, 2024 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Add db version command
1 participant