Allow branching to and from different instances
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.
It would probably have to work by doing an edgedb dump/restore, but that's maybe fine
@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:
- Create a temporary schema-only branch
- Dump schema-only branch
- 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.
This would be superb