Skip to content

Conversation

@pyramation
Copy link
Contributor

Summary

This PR renames legacy "Sqitch" naming conventions to "PGPM" throughout the pgpm/core package:

  • SqitchRowPgpmRow
  • writeSqitchPlanwritePgpmPlan
  • writeSqitchFileswritePgpmFiles

All old names are preserved as deprecated type aliases for backwards compatibility. Internal call sites in export-migrations.ts and tests have been updated to use the new names.

Review & Testing Checklist for Human

  • Verify barrel exports: Check that pgpm/core/src/files/index.ts properly re-exports both the new names (PgpmRow, writePgpmPlan, writePgpmFiles) and the deprecated aliases (SqitchRow, writeSqitchPlan, writeSqitchFiles). The diff doesn't show changes to this file.

  • Search for other consumers: Run grep -r "SqitchRow\|writeSqitchPlan\|writeSqitchFiles" --include="*.ts" across the monorepo to verify no other files import these that weren't updated.

  • Test deprecated aliases: The tests were updated to use new names. Consider adding a small test that imports the deprecated aliases to ensure backwards compatibility works.

Notes

This is PR 2 of a planned series for the export-migrations.ts refactor. PR 1 (#504) adds the license: 'CLOSED' field and comments out security-related SQL.

Link to Devin run: https://app.devin.ai/sessions/7e7813472a0643aa88ccb509b288050a
Requested by: Dan Lynch (@pyramation)

- Rename SqitchRow to PgpmRow (keep SqitchRow as deprecated alias)
- Rename writeSqitchPlan to writePgpmPlan (keep alias)
- Rename writeSqitchFiles to writePgpmFiles (keep alias)
- Update internal helper functions (writeDeploy, writeVerify, writeRevert) to use PgpmRow
- Update export-migrations.ts to use new names
- Update tests to use new names
- All backwards-compatible aliases are marked with @deprecated JSDoc
@devin-ai-integration
Copy link
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 and CI monitoring

@pyramation pyramation merged commit 1f1e3c1 into main Dec 27, 2025
34 checks passed
@pyramation pyramation deleted the devin/1766798175-sqitch-to-pgpm-rename branch December 27, 2025 01:41
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.

2 participants