chore: sync all modules from constructive-db#50
Closed
pyramation wants to merge 5 commits intomainfrom
Closed
Conversation
Updates all pgpm-modules packages to match the latest versions from constructive-db. Key changes include: metaschema-modules: - Added 'fields' jsonb[] column to secure_table_provision - Changed grant_privileges type from jsonb to jsonb[] - Changed default PK generation from uuid_generate_v4() to uuidv7() - Added blueprint/blueprint_template tables and procedures - Removed table_module and uuid_module (no longer used) - Added uuid-ossp to control file requires metaschema-schema: - Added embedding_chunks table - Various table definition updates (uuidv7, etc.) All other modules updated with minor version bumps, test files, and .npmignore additions.
🤖 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:
|
4 tasks
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
Bulk sync of all 12 pgpm-modules packages from constructive-db (private, source-of-truth repo) to the public pgpm-modules repo. The public repo had fallen behind.
Key schema changes in
metaschema-modules:fields jsonb[]column tosecure_table_provision(needed by agentic-db-services provisioning SQL)grant_privilegestype fromjsonbtojsonb[]uuid_generate_v4()touuidv7()blueprintandblueprint_templatetables with associated procedures (compute_blueprint_hash,construct_blueprint,copy_template_to_blueprint,validate_blueprint_definition)table_moduleanduuid_moduleuuid-osspto control filerequiresKey schema changes in
metaschema-schema:embedding_chunkstableuuidv7()across tablesOther changes across all packages:
.controlfiles from0.15.3→0.15.5^4.7.9pnpm-lock.yamlto match new dependency versionsCI infrastructure updates:
pyramation/pgvector:13.3-alpine(PG 13) →constructiveio/postgres-plus:18(PG 18) to supportuuidv7()2.7.9→4.7.4ci.ymlandintegration-test.ymlupdatedTest fixes:
__tests__/andrevert/files that were inadvertently removed during the sync from constructive-db (restored frommain)jest.config.jsto services package (was missing, causing "Jest encountered an unexpected token" on TypeScript test files)CI status: 22/22 checks passing ✓
Review & Testing Checklist for Human
package.jsonregressed from0.19.0→0.15.5across many packages (base32, database-jobs, utils, verify, etc.). The.controlfiles go0.15.3→0.15.5which is correct, but the npm package versions going down looks wrong. Verify this is intentional and won't break consumers relying on semver.grant_privilegestype change (jsonb→jsonb[]) insecure_table_provisionis a breaking change. Existing INSERT statements using'[]'::jsonbwill fail against the newjsonb[]type. Confirm all downstream consumers have been updated.table_moduleanduuid_modulefrom metaschema-modules (deploy, revert, verify, and pgpm.plan entries). Verify no deployed databases still reference these migrations.main, not from constructive-db. Verify the revert SQL is still compatible with the updated deploy SQL from constructive-db.Notes
fieldscolumn that only existed in constructive-db's version of metaschema-modules.database-jobscontrol file droppeduuid-osspfrom itsrequireswhilemetaschema-modulesadded it — the dependency shifted but wasn't removed entirely.jest.config.jswas copied frommetaschema-modules(usests-jestpreset). This was needed because the test file restored frommainis TypeScript but the package had no jest configuration.Link to Devin session: https://app.devin.ai/sessions/c26111a26a9a44f891534104a809dcdb
Requested by: @pyramation