Skip to content

Conversation

@jumski
Copy link
Contributor

@jumski jumski commented Sep 5, 2025

Summary

Adds a new comprehensive how-to guide for updating pgflow that covers:

  • Updating npm packages (@pgflow/cli, @pgflow/core, etc.)
  • Updating JSR Edge Worker package
  • Running pgflow install to apply new migrations
  • Understanding the migration timestamp prefixing system

Key Features

  • Unified versioning warning: Emphasizes that all pgflow packages must be on the same version
  • Migration system explanation: Explains how pgflow uses dual timestamps to ensure proper migration ordering
  • Pre-1.0 versioning scheme: Documents the modified semver approach used until production release
  • Best practices: Separate workflows for development vs production environments
  • Troubleshooting: Common issues and solutions when updating

Important Details

  • Always use npx pgflow@latest install to ensure latest migrations are applied
  • Migration files are prefixed with new timestamps to make them newest in user's folder
  • Original timestamps are preserved in filenames for duplicate detection
  • Pre-1.0: patches include small features, minors contain breaking changes

This guide fills a critical gap in the documentation by providing clear instructions for the update process that users will need as pgflow evolves.

… migrations

- Introduced a new documentation page detailing the full update process for pgflow
- Included instructions for updating npm, JSR Edge Worker, and database migrations
- Clarified migration timestamping and conflict resolution strategies
- Added best practices for development and production environments
- Updated troubleshooting tips and versioning notes to assist users in maintaining compatibility
@changeset-bot
Copy link

changeset-bot bot commented Sep 5, 2025

⚠️ No Changeset found

Latest commit: 7a838b7

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@nx-cloud
Copy link

nx-cloud bot commented Sep 5, 2025

View your CI Pipeline Execution ↗ for commit 7a838b7

Command Status Duration Result
nx run-many -t build --projects client,dsl --co... ✅ Succeeded 3s View ↗
nx affected -t build --configuration=production... ✅ Succeeded 20s View ↗
nx affected -t lint typecheck test --parallel -... ✅ Succeeded 1s View ↗

☁️ Nx Cloud last updated this comment at 2025-09-05 06:44:03 UTC


1. **npm packages** - CLI, core libraries, client, and DSL packages
2. **JSR package** - The Edge Worker package (published to JSR registry)
3. **Database migrations** - Schema and function updates
Copy link
Contributor

Choose a reason for hiding this comment

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

The numbering here creates a mismatch between the "What needs to be updated?" section (which lists 3 items) and the "Update Process" section (which has 5 steps). For clarity, consider either:

  1. Rewording this to "Apply database migrations - Schema and function updates" without numbering it as a package type, or
  2. Restructuring the list to clearly separate packages (npm and JSR) from actions (applying migrations)

This would help users better understand what components need updating versus what actions they need to take.

Suggested change
3. **Database migrations** - Schema and function updates
**Apply database migrations** - Schema and function updates

Spotted by Diamond

Fix in Graphite


Is this helpful? React 👍 or 👎 to let us know.

Always test pgflow updates in a non-production environment first. While pgflow migrations are designed to be safe, any database schema change carries inherent risks in production systems.
</Aside>

Your pgflow installation is now updated with the latest features, bug fixes, and database schema improvements! No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

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

The file is missing a newline at the end, which is a standard practice in text files. Adding a newline character at the end of the file will ensure compatibility with various tools and version control systems that expect this convention. This can prevent unexpected behavior when concatenating files or viewing diffs.

Spotted by Diamond

Fix in Graphite


Is this helpful? React 👍 or 👎 to let us know.

…tion

- Removed "NEW!" badge from context documentation
- Added "Next Steps" section with link to update pgflow in edge worker configuration
- Renamed and moved "update-pgflow" guide to "getting-started" for consistency
- Updated frontmatter order and badge information accordingly
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 5, 2025

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.

Important

Review skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch docs-add-update-pgflow-how-to

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore or @coderabbit ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

… news sections

- Removed unnecessary badge property from concepts label
- Ensured consistent spacing and indentation in configuration object
- Fixed news topic array formatting for clarity and correctness
@github-actions
Copy link
Contributor

github-actions bot commented Sep 5, 2025

🔍 Preview Deployment: Website

Deployment successful!

🔗 Preview URL: https://pr-204.pgflow.pages.dev

📝 Details:

  • Branch: docs-add-update-pgflow-how-to
  • Commit: 09dd1a5e0f38ba3c8f2203d50f53fba600d83673
  • View Logs

_Last updated: _

@github-actions
Copy link
Contributor

github-actions bot commented Sep 5, 2025

🔍 Preview Deployment: Playground

Deployment successful!

🔗 Preview URL: https://pr-204--pgflow-demo.netlify.app

📝 Details:

  • Branch: docs-add-update-pgflow-how-to
  • Commit: 09dd1a5e0f38ba3c8f2203d50f53fba600d83673
  • View Logs

_Last updated: _

@jumski jumski merged commit 7109987 into main Sep 5, 2025
5 checks passed
@github-actions
Copy link
Contributor

github-actions bot commented Sep 5, 2025

🚀 Production Deployment: Website

Successfully deployed to production!

🔗 Production URL: https://pgflow.dev

📝 Details:

  • Commit: 71099870963ed3c6546876665c533c3a9f830051
  • View Logs

Deployed at: 2025-09-05T08:45:52+02:00

@github-actions
Copy link
Contributor

github-actions bot commented Sep 5, 2025

🚀 Production Deployment: Playground

Successfully deployed to production!

🔗 Production URL: https://playground.pgflow.dev

📝 Details:

  • Commit: 71099870963ed3c6546876665c533c3a9f830051
  • View Logs

Deployed at: 2025-09-05T08:45:52+02:00

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