Skip to content

fix(export): include inflection-db in DB_REQUIRED_EXTENSIONS#1346

Closed
pyramation wants to merge 2 commits into
mainfrom
fix/include-inflection-db-required-extensions
Closed

fix(export): include inflection-db in DB_REQUIRED_EXTENSIONS#1346
pyramation wants to merge 2 commits into
mainfrom
fix/include-inflection-db-required-extensions

Conversation

@pyramation

Copy link
Copy Markdown
Contributor

Summary

Adds inflection-db to pgpm/export/src/export-utils.ts DB_REQUIRED_EXTENSIONS.

constructive-db generators emit SQL that calls inflection_db.* functions (e.g., get_namespace_name, get_field_name) in tenant triggers and index/constraint names. inflection-db is a public pgpm module, so listing it as a required extension means a fresh module export will include it in the generated .control requires and package.json dependencies without any post-export patching.

The downstream diligence-app-demo packages/export/src/run-export.ts previously in-lined these calls and patched inflection_db references after exportMigrations; with inflection-db present in the dependency list, that patch is unnecessary.

Link to Devin session: https://app.devin.ai/sessions/6bde130e8b01413c925b85ddb936df31
Requested by: @pyramation

The exported tenant modules contain SQL that references inflection_db.*
functions (get_namespace_name, get_field_name, etc.) emitted by
constructive-db generators. inflection-db is a public pgpm module, so
listing it as a required extension keeps it in the generated .control
and package.json dependencies and removes the need for downstream
post-export SQL patching.
@pyramation pyramation self-assigned this Jul 9, 2026
@devin-ai-integration

Copy link
Copy Markdown
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@pyramation pyramation closed this Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant