© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
XataX
Xata•10mo ago•
13 replies
Michael Schaufelberger

Unable to start a pgroll migration using the Xata CLI

Hi 👋

I'm having trouble starting a pgroll v0.11.1 migration using the Xata CLI.

The error I get is:
xata migrate start mybranch db/migrations/pgroll/0000_init.json
xata migrate start mybranch db/migrations/pgroll/0000_init.json


  Error: invalid migration: decode migration [create_table]: json: unknown field "constraints"
  Error: invalid migration: decode migration [create_table]: json: unknown field "constraints"


I suspect that has to do with the Xata CLI not supporting the newest migration syntax of pgroll. What can I do to work around this issue? Can I use pgroll directly?
Xata banner
XataJoin
This is Xata's community Discord server, where we discuss all things Xata: projects, features, dreams!
1,125Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

pgroll.is_active_migration_period Error
XataXXata / help
14mo ago
Generate pgroll migration file from a current postgres schema
XataXXata / help
2y ago
PGRoll constraints not visible in latest migration
XataXXata / help
2y ago
Cannot install Xata CLI in Linux using the script or homebrew
XataXXata / help
15mo ago