Prevent creating duplicates when loading from gist

This commit is contained in:
1ilit
2024-09-01 19:15:58 +04:00
parent c6c24d02b9
commit 9aec2f02d0
4 changed files with 38 additions and 5 deletions

View File

@@ -3,8 +3,8 @@ import { templateSeeds } from "./seeds";
export const db = new Dexie("drawDB");
db.version(5).stores({
diagrams: "++id, lastModified",
db.version(6).stores({
diagrams: "++id, lastModified, &loadedFromGistId",
templates: "++id, custom",
});