Skip to content

docs: MSSQL schema change handling and new error codes (powersync-docs #568) - #76

Open
bean1352 wants to merge 2 commits into
mainfrom
claude/compassionate-einstein-vmjbe0
Open

docs: MSSQL schema change handling and new error codes (powersync-docs #568)#76
bean1352 wants to merge 2 commits into
mainfrom
claude/compassionate-einstein-vmjbe0

Conversation

@bean1352

Copy link
Copy Markdown
Collaborator

Generated by Claude. Review carefully before merging.

Source docs PR: powersync-ja/powersync-docs#568

What changed in docs

PowerSync Service v1.25.0 changed MSSQL schema change handling: each deployment is now pinned to specific CDC capture instances and does not adopt schema changes automatically. The PR also added new MSSQL error codes (PSYNC_S1601 updated, plus PSYNC_S1602, PSYNC_S1603, PSYNC_S1604, PSYNC_R2201, PSYNC_S4106) and documented that wildcard table names (%) are not supported for SQL Server.

Skill updates in this PR

  • skills/powersync/references/powersync-debug.md: Updated PSYNC_S1601 action (redeploy Sync Config required, not just re-enable CDC). Added PSYNC_R2201, PSYNC_S1602, PSYNC_S1603, PSYNC_S1604, and PSYNC_S4106 to the key error codes table.
  • skills/powersync/references/powersync-service.md: Added an "MSSQL Replication Constraints (v1.25.0+)" subsection after the Quick Start block covering: no wildcard table names, every listed table must exist with CDC enabled, schema changes require Sync Config redeployment, and what happens when a pinned capture instance is removed.

Notes for reviewer

The v1.25.0 behavior change is significant: the old PSYNC_S1601 action ("re-enable CDC; replication resumes automatically") is now wrong. Any agent that followed that instruction would leave the user stuck. The updated row reflects the correct flow.

The snyk-agent-scan demo endpoint returned 403 from the network proxy in this environment. The validate.mjs script passed with zero warnings. The edits contain no credentials, connection strings, hex strings, or credential-harvesting language, so no false positives are expected.

A dedicated mssql-schema-changes.md reference file was considered but not created. The existing two files cover the actionable parts (error codes and setup constraints). The full step-by-step schema change workflows are in the docs and linked from powersync-service.md; a new reference file would mostly duplicate that content without adding agent-usable rules.


Generated by Claude Code

….25.0

- Update PSYNC_S1601 action: redeployment required, re-enabling CDC alone
  is not enough (capture instance gets a new object ID)
- Add PSYNC_S1602: table not ready (CDC not enabled or table missing)
- Add PSYNC_S1603: table dropped/renamed/recreated or identity mismatch
- Add PSYNC_S1604: MSSQL connection configuration error
- Add PSYNC_R2201: wildcard table/schema name not supported by connector
- Add PSYNC_S4106: Sync Config reprocess blocked by concurrent deployment
- Add MSSQL replication constraints section in powersync-service.md:
  no wildcard table names, every table must exist with CDC enabled,
  schema changes require Sync Config redeployment

Source: powersync-docs #568

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QvSGF6y5LDhE2bf6GAWYPf
@michaelbarnes michaelbarnes changed the title Sync from docs: MSSQL schema change handling and new error codes (powersync-docs #568) docs: MSSQL schema change handling and new error codes (powersync-docs #568) Sep 9, 2026
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.

3 participants