X
Xata3w ago
angelgce

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.
No description
No description
16 Replies
cmck
cmck3w ago
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.
cmck
cmck3w ago
thank you!
angelgce
angelgceOP3w ago
thank you for check this!
cmck
cmck3w ago
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.
angelgce
angelgceOP3w ago
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
cmck
cmck3w ago
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.
angelgce
angelgceOP2w ago
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
cmck
cmck2w ago
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
angelgce
angelgceOP2w ago
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
cmck
cmck2w ago
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.
angelgce
angelgceOP2w ago
got it, and how can I fix it? because the preview branch is automatically created ?
cmck
cmck2w ago
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.
angelgce
angelgceOP2w ago
got it, then I should still using the xata cli command, push, right ?
cmck
cmck2w ago
Yes that's the recommended approach for the moment. Let me know if you encounter any difficulties with that.
angelgce
angelgceOP2w ago
thank you

Did you find this page helpful?