Migrations failed on git update
When I create my PR my xata dev branch has migrations, because of that a preview branch is created as the documentation says to see my |migrations", but this branch never brings my changes even if my PR has the new migrations, so when I merge my PR, xata wont update main with new migrations.


16 Replies
Thanks for bringing this to our attention, I'll see if I can recreate the issue and let you know how I get on. In the meantime, can you please share your workspace ID? Please email it to
[email protected]
with a link to reference to this thread.thank you!
thank you for check this!
Thanks for your patience. It looks like the
preview-PumpXL-followers
branch has been deleted, along with its logs. Would it be possible for you to recreate the preview branch (and thus error)?
Also, can you please enable support access to your database? You can do so in your workspace settings. This will let me take a look at the problematic preview branch and see what the issue might be.after I push to main my code all the preview branch are delete, but i have that problem each time I push a PR, I enable the setting you asked me
Thanks angel, I have access now. Let me know the next time you create a preview branch so I can investigate any migrations that are missing from it. The likelihood is that there was an error applying the migrations during branch creation that can only be investigated while the branch exists.
https://app.xata.io/workspaces/3vnerh/dbs/pumps:us-east-1/branches/preview-PumpXL-refactory/tables/groups
can you help me with this ?
i dont want to approve it before you check it
I'll take a look now, thanks!
Was this branch
preview-PumpXL-refactory
created off the dev branch? It looks to have the same migrations as main
yes I used dev
The problem is if I push to main my git pr the preview branch will be erased but it won’t be merge with xata main, I will have to use manually the xata cli push command
I understand. The
dev
branch looks different to the preview-PumpXL-refactory
branch whereas main
and preview-PumpXL-refactory
are a match. I believe there is an issue with the git preview branch that is causing it to be made off the wrong branch.got it, and how can I fix it? because the preview branch is automatically created ?
I believe the issue is internal. The github migrations feature is still in beta and the team are still working on its development. Apologies for any inconvenience caused.
got it, then I should still using the xata cli command, push, right ?
Yes that's the recommended approach for the moment. Let me know if you encounter any difficulties with that.
thank you