Skip to content

Conversation

@erika-wallace
Copy link
Contributor

@erika-wallace erika-wallace commented Jan 23, 2026

Description

W-19701133

This PR converts the following pg commands and their associated tests to ESM.

Converted commands:

  • upgrade/cancel.ts
  • upgrade/dryrun.ts
  • upgrade/index.ts
  • upgrade/prepare.ts
  • upgrade/run.ts
  • upgrade/wait.ts

Notable Changes:

  • Replaced the use of strip-ansi with ansis to strip ANSI code from test output based on this conversation

Testing

Notes:
Requires a Standard-tier or higher Postgres database.

Steps:
Pull down branch, npm install && npm run build

# Show converted commands
./bin/run pg:upgrade --help

# Upgrades Essential-tier databases or followers (should error for Standard-tier or higher)
./bin/run pg:upgrade DATABASE --app APP

# Run a test upgrade simulation (sends an email when complete - takes a while)
./bin/run pg:upgrade:dryrun DATABASE --app APP

# Schedule an upgrade
./bin/run pg:upgrade:prepare DATABASE --app APP

# Check status (will show preparation progress, Ctrl+C to exit)
./bin/run pg:upgrade:wait DATABASE --app APP

# Cancel the scheduled upgrade
./bin/run pg:upgrade:cancel DATABASE --app APP

@erika-wallace erika-wallace requested a review from a team as a code owner January 23, 2026 20:01
Copy link
Contributor

@tlowrimore-heroku tlowrimore-heroku left a comment

Choose a reason for hiding this comment

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

Looks good!

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