fix(pgpm/cli): use database name instead of UUID for default extension name#491
Merged
pyramation merged 1 commit intomainfrom Dec 26, 2025
Merged
Conversation
…n name Previously, the export command defaulted the extensionName to the database UUID (dbInfo.database_ids[0]), which resulted in confusing names like '7c944bc6-511a-44ad-a407-ce2cefd5e466'. Now it uses the selected database name from collections_public.database, falling back to the PostgreSQL database name (dbname) if no name is available.
Contributor
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes the default value for
extensionNamein thepgpm exportcommand from a UUID to the human-readable database name.Previously, the default was
dbInfo.database_ids[0]which is a UUID like7c944bc6-511a-44ad-a407-ce2cefd5e466. Now it uses the selected database name fromcollections_public.database, falling back to the PostgreSQL database name (dbname) if unavailable.Review & Testing Checklist for Human
pgpm exportend-to-end - Verify the extension name prompt now shows a readable database name as the default instead of a UUIDselectedDatabaseNames[0]is somehow undefined, confirm it falls back todbnamecorrectlyTest Plan
pgpm exportagainst a database with entries incollections_public.databaseNotes
Link to Devin run: https://app.devin.ai/sessions/7530c5fa0b95477e9758c657dff7e299
Requested by: Dan Lynch (@pyramation)