Database diagrams editor that allows you to visualize and design your DB with a single query.
TypeScript databasedbdb-migrationeditorerdmariadbmssqlmysqlpostgresqlreactreact-flowschema-migrationssqlsqlitetypescriptvisualizationxyflow
remove dependencies when deletes diagram (#277)
Guy Ben-Aharon58382767a0fa
diff --git a/src/context/storage-context/storage-provider.tsx b/src/context/storage-context/storage-provider.tsxindex 136201e6..ea318f0f 100644--- a/src/context/storage-context/storage-provider.tsx+++ b/src/context/storage-context/storage-provider.tsx@@ -275,6 +275,7 @@ export const StorageProvider: React.FC<React.PropsWithChildren> = ({db.diagrams.delete(id),db.db_tables.where('diagramId').equals(id).delete(),db.db_relationships.where('diagramId').equals(id).delete(),+ db.db_dependencies.where('diagramId').equals(id).delete(),]);};