xata push main

I'm trying to push my changes to main, (23 migrations) and am getting an error. Any idea what this error could mean? Error: Internal Error (Request ID: faa5be17-dc42-9822-986d-ca24f6b60427)
5 Replies
kostas
kostas7mo ago
Hi, I noticed that the relevant db does not have any branches other than main. Where do these migrations/changes come from? The "xata pull originbranch" / "xata push targetbranch" workflow is aimed at branches of the same database, such as: main -> create a branch dev -> make changes to dev -> push changes to main. In case you are pushing migrations from another db for example, it won't work.
Cap10Chunks
Cap10ChunksOP7mo ago
hi @kostas I am definitely using the same database. Im trying to take the migrations from the version2 branch to the main branch.
Cap10Chunks
Cap10ChunksOP7mo ago
No description
kostas
kostas7mo ago
Thank you for the clarification, I probably missed the version2 branch somehow Can you try the branch migration request from the UI to see if that works? From the branches dropdown (in your screenshot above), manage migrations -> Create a migration request. This will create the migration request which will also provide a view of the computed schema changes and give you the option to complete the migration (merge migration). Let me know if that works? Another option is to try to "force pull" migrations from the version2 branch with the -f flag : xata pull -f version2 This will clean up the migration directory first, and re-generate the migration files.
Cap10Chunks
Cap10ChunksOP7mo ago
I will try these. Thank you!
Want results from more Discord servers?
Add your server