drawdb-io / drawdb

Free, simple, and intuitive online database design tool and SQL generator.
https://drawdb.vercel.app
MIT License
12.09k stars 855 forks source link

Undo action when field is deleted #84

Closed mtb0x1 closed 1 month ago

mtb0x1 commented 2 months ago

The undo action seems unreliable. I was able to reproduce the issue below :

Steps : 1) Create 2 tables (table with ID int, table2 with ID int) 2) Create a relation between table.ID and table2.ID 3) Save 3) Remove filed table2.ID 4) Save 5) Undo

Result : table2.ID is restored, but it's relationship with table.ID is lost.

Expected result : table2.ID is restored with it's relationship(s).