import the corresponding exported erd file on another user’s computer
The problem is that when I import from another computer,
the position of the table that I moved is not maintained, and auto-arranged.
if there is currently a way to fix this?
I’m Nguyen from the dbdiagram team. Thank you for your question.
The exported SQL does not contain the diagram positions so when you import it again, the position is lost.
To clone the diagram and positions, you can share your diagram with view permission to other people. They can click the “Edit as New” button to clone the diagrams together with their current positions (see image below).
If I type out the DBML, it automatically creates some layout.
If I then move the tables around in the viewer, I can get the layout that I want.
If I save and share the link with someone else, they see the automatically-created layout, instead of my custom one. Nguyen’s answer above made it look like the shared link should have my customisations.
I have never used that menu shown on the right in the link.
In that case, they layout is the positions of the table in the diagram. It would be nice if you could share with us your dbdiagram URL. You can also contact us at dbdiagram@holistics.io if you want to share the diagram URL with us safely.
Hi, I may have encountered a variant of this bug. I have two workstations. I started the diagram on Workstation A, and that was good. Then I copied the URL to Workstation B, and continued the work there. I closed the tab on Workstation A, and then on Workstation B, I carefully manually arranged the diagram, and it was still good. Then, Workstation B needed to restart, which closed the browser window. Upon reopening the browser window on Workstation B, I had lost my diagram arrangement. This makes me worried about using dbdiagram for some planned complex data models.
Fortunately, I was able to reopen the diagram on Workstation A, and my layout was still saved there. I made a minor modification on Workstation A, saved it, and then reloaded the URL on Workstation B, and the layout was restored.
We’re so sorry about the bad experience and your worry.
To help us investigate the issue more thoroughly, could you please share the diagram link with us? You can send it to dbdiagram@holistics.io. We’ll only use the information for debugging purposes.