© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
XataX
Xata•2y ago•
4 replies
AA-morganhoke

PGRoll constraints not visible in latest migration

Hi,

I have a raw sql migration that creates a unique constraint across a few columns. I want to use this constraint to enforce an upsert workflow. However, in the schema from that migration (public_MIGRATION_NAME) the constraint isn't visible. If I switch to the public schema, it is visible and working, so I can see that it's getting created correctly. Is there something I need to do to get my constraint into my migration schema's view, or should I run another migration, or do something else?

Thanks!
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
Multiple schemas in pgroll
XataXXata / help
2y ago
pgroll with drizzle generated migrations - possible?
XataXXata / help
14mo ago
Generate pgroll migration file from a current postgres schema
XataXXata / help
2y ago