Migration rollback
Skill xataio/nextjs-claude-code-starter/.claude/skills/migration-rollback
Production-ready Next.js + Postgres starter with 6 Claude Code skills. Zero-downtime migrations, instant DB branches, PII-safe prod clones. MIT licensed.
npx -y skills add xataio/nextjs-claude-code-starter --skill migration-rollbackAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Undo an in-progress migration that hasn't been completed yet
SKILL.md
1.1 KB, as published. Nobody here has run it
Roll back a migration
Undo an in-progress migration that hasn't been completed yet.
Usage
xata roll rollback
When to use
Use rollback when:
- Tests fail after
xata roll start - You discover issues during the expand phase
- You need to modify the migration before proceeding
What happens
The rollback:
- Reverses the expand phase changes
- Removes new columns/tables that were added
- Drops the synchronization triggers
- Restores the database to pre-migration state
Important
- Rollback only works before
xata roll complete - Once a migration is completed, you need a new migration to undo changes
- No data loss occurs during rollback (pgroll preserves existing data)
Checking status
See what migration is in progress:
xata roll status
After rollback
You can:
- Modify your migration file and try again with
xata roll start - Abandon the migration entirely
- Switch to a different branch to continue other work