Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow branching to and from different instances #1342

Open
scotttrinh opened this issue Jun 17, 2024 · 3 comments
Open

Allow branching to and from different instances #1342

scotttrinh opened this issue Jun 17, 2024 · 3 comments

Comments

@scotttrinh
Copy link
Contributor

Right now, the branch create command only operates on the connected instance. It would be useful to be able to specify different instances for the source and target so you can, for instance, copy just the schema of your production database into CI without having to manually create a schema-only branch and use dump->restore, or having to run all of the migrations.

@scotttrinh scotttrinh changed the title Allow branching from a remote instance Allow branching to and from different instances Jun 17, 2024
@msullivan
Copy link
Member

It would probably have to work by doing an edgedb dump/restore, but that's maybe fine

@scotttrinh
Copy link
Contributor Author

@msullivan

It would probably have to work by doing an edgedb dump/restore, but that's maybe fine

Yeah it seems like if we expose a way to do this in the CLI, we can start with:

  1. Create a temporary schema-only branch
  2. Dump schema-only branch
  3. Restore schema-only branch to target instance

And then if we come up with a better way to do this in the future, we can swap that in when possible, but use the same command.

@CallumAlder
Copy link

This would be superb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants