Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion agentic/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@constructive-io/sdk": "workspace:^",
"@earendil-works/pi-coding-agent": "1.4.0",
"appstash": "^0.8.0",
"inquirerer": "^4.9.4"
"inquirerer": "^4.9.7"
},
"keywords": [
"agentic-kit",
Expand Down
4 changes: 2 additions & 2 deletions graphql/codegen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"@constructive-io/graphql-query": "workspace:^",
"@constructive-io/graphql-types": "workspace:^",
"@dataplan/pg": "1.1.1",
"@inquirerer/utils": "^3.3.13",
"@inquirerer/utils": "^3.3.16",
"@pgpmjs/core": "workspace:^",
"ajv": "^8.20.0",
"deepmerge": "^4.3.1",
Expand All @@ -69,7 +69,7 @@
"graphile-schema": "workspace:^",
"graphql": "16.13.0",
"inflekt": "^0.8.1",
"inquirerer": "^4.9.4",
"inquirerer": "^4.9.7",
"jiti": "^2.7.0",
"oxfmt": "^0.51.0",
"pg-cache": "workspace:^",
Expand Down
2 changes: 1 addition & 1 deletion graphql/server-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"graphile-llm": "workspace:^",
"graphile-utils": "5.0.3",
"graphql-ws": "^6.0.8",
"inquirerer": "^4.9.4",
"inquirerer": "^4.9.7",
"makage": "^0.8.0",
"nested-obj": "^0.2.3",
"postgraphile": "5.1.4",
Expand Down
6 changes: 3 additions & 3 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"test:watch": "jest --watch"
},
"devDependencies": {
"@inquirerer/test": "^1.4.6",
"@inquirerer/test": "^1.4.9",
"@types/js-yaml": "^4.0.9",
"@types/node": "^22.19.11",
"@types/pg": "^8.20.4",
Expand All @@ -50,14 +50,14 @@
"@constructive-io/graphql-explorer": "workspace:^",
"@constructive-io/graphql-server": "workspace:^",
"@constructive-io/graphql-types": "workspace:^",
"@inquirerer/utils": "^3.3.13",
"@inquirerer/utils": "^3.3.16",
"@pgpmjs/core": "workspace:^",
"@pgpmjs/logger": "workspace:^",
"@pgpmjs/server-utils": "workspace:^",
"@pgpmjs/types": "workspace:^",
"appstash": "^0.8.0",
"find-and-require-package-json": "^0.9.1",
"inquirerer": "^4.9.4",
"inquirerer": "^4.9.7",
"js-yaml": "^4.1.0",
"pg-cache": "workspace:^",
"pg-env": "workspace:^",
Expand Down
2 changes: 1 addition & 1 deletion packages/csv-to-pg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"@pgsql/types": "^18.0.0",
"@pgsql/utils": "^18.3.15",
"csv-parser": "^3.2.1",
"inquirerer": "^4.9.4",
"inquirerer": "^4.9.7",
"js-yaml": "^4.1.0",
"pgsql-deparser": "^18.5.8"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/safegres/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@
"safegres"
],
"dependencies": {
"@inquirerer/utils": "^3.3.13",
"@inquirerer/utils": "^3.3.16",
"@pgpmjs/logger": "workspace:^",
"@pgsql/lint": "^18.3.17",
"@pgsql/traverse": "^18.8.15",
"@pgsql/types": "^18.0.0",
"confstash": "^0.1.2",
"inquirerer": "^4.9.4",
"inquirerer": "^4.9.7",
"libpg-query": "^18.3.0",
"pg": "^8.21.0",
"pg-env": "workspace:^",
Expand Down
8 changes: 4 additions & 4 deletions pgpm/cli/package.json

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 Default migration exports skip schema renaming

When noninteractive pgpm export uses the default schema selection, inquirerer returns checkbox objects instead of names. The string comparisons in SQL export and GraphQL export match none. The exported migrations silently retain source schema names.

Devin left this for you to triage: Real 4.9.7 regression (required noninteractive checkbox defaults return objects). Fixed upstream in inquirerer (dev-utils branch devin/1795750839-inquirerer-checkbox-default-compat); hold this PR until that ships as 4.9.8 and bump to it.

(Refers to this code)

Learn more

PGPM export renames source schemas to names derived from the output extension. The schema prompt in GraphQL mode and the schema prompt in SQL mode default to all schemas. In noninteractive mode, inquirerer 4.9.4 returned that default as a string array, while 4.9.7 returns selected checkbox objects. Both SQL export and GraphQL export use string membership to build the schema list for makeReplacer, so the new answer produces no schema replacements.

Example: Export a database with schema pets_public as extension adopt, using --no-tty without --schema_names. The prompt now returns [{ name: 'pets_public', value: 'pets_public', selected: true }] rather than ['pets_public']. The export keeps pets_public in the generated migrations instead of rewriting it to adopt_public.

Recommended fix: Normalize both checkbox answers to selected schema name strings before passing them to exportMigrations or exportGraphQL. Test that a noninteractive export without --schema_names rewrites a source schema to a different destination name.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"test:watch": "jest --watch"
},
"devDependencies": {
"@inquirerer/test": "^1.4.6",
"@inquirerer/test": "^1.4.9",
"@types/cross-spawn": "^6.0.6",
"@types/js-yaml": "^4.0.9",
"@types/node": "^22.19.11",
Expand All @@ -46,7 +46,7 @@
"ts-node": "^10.9.2"
},
"dependencies": {
"@inquirerer/utils": "^3.3.13",
"@inquirerer/utils": "^3.3.16",
"@pgpmjs/core": "workspace:^",
"@pgpmjs/diff": "workspace:^",
"@pgpmjs/env": "workspace:^",
Expand All @@ -60,8 +60,8 @@
"appstash": "^0.8.0",
"cross-spawn": "^7.0.6",
"find-and-require-package-json": "^0.9.1",
"genomic": "^5.6.6",
"inquirerer": "^4.9.4",
"genomic": "^5.6.9",
"inquirerer": "^4.9.7",
"js-yaml": "^4.1.0",
"pg-cache": "workspace:^",
"pg-env": "workspace:^",
Expand Down
4 changes: 2 additions & 2 deletions pgpm/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"@types/pg": "^8.20.4",
"@types/semver": "^7.8.0",
"copyfiles": "^2.4.1",
"inquirerer": "^4.9.4",
"inquirerer": "^4.9.7",
"makage": "^0.8.0"
},
"dependencies": {
Expand All @@ -61,7 +61,7 @@
"@pgpmjs/types": "workspace:^",
"cross-spawn": "^7.0.6",
"csv-to-pg": "workspace:^",
"genomic": "^5.6.6",
"genomic": "^5.6.9",
"git-changed": "^0.4.0",
"glob": "^13.0.6",
"parse-package-name": "^1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion pgpm/export/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"csv-to-pg": "workspace:^",
"glob": "^13.0.6",
"inflekt": "^0.8.1",
"inquirerer": "^4.9.4",
"inquirerer": "^4.9.7",
"pg": "^8.21.0",
"pg-cache": "workspace:^",
"pg-env": "workspace:^"
Expand Down
Loading
Loading