@geode/opengeodeweb-front 10.13.1 → 10.13.2-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,20 +14,25 @@ class Database extends BaseDatabase {
14
14
  }
15
15
 
16
16
  static async addTables(newTables) {
17
- const tempDb = new Dexie("Database");
18
- await tempDb.open();
17
+ let currentVersion = 1;
18
+ let currentStores = { ...BaseDatabase.initialStores };
19
19
 
20
- const currentVersion = tempDb.verno;
21
- const currentStores = { ...BaseDatabase.initialStores };
20
+ if (await Dexie.exists("Database")) {
21
+ const tempDb = new Dexie("Database");
22
+ await tempDb.open();
22
23
 
23
- for (const table of tempDb.tables) {
24
- const keyPath = table.schema.primKey.src;
25
- const indexes = table.schema.indexes.map((index) => index.src);
26
- const parts = keyPath ? [keyPath, ...indexes] : indexes;
27
- currentStores[table.name] = parts.join(",");
28
- }
24
+ currentVersion = tempDb.verno;
25
+ currentStores = { ...BaseDatabase.initialStores };
26
+
27
+ for (const table of tempDb.tables) {
28
+ const keyPath = table.schema.primKey.src;
29
+ const indexes = table.schema.indexes.map((index) => index.src);
30
+ const parts = keyPath ? [keyPath, ...indexes] : indexes;
31
+ currentStores[table.name] = parts.join(",");
32
+ }
29
33
 
30
- tempDb.close();
34
+ tempDb.close();
35
+ }
31
36
 
32
37
  const allExisting = Object.keys(newTables).every((tableName) => currentStores[tableName]);
33
38
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geode/opengeodeweb-front",
3
- "version": "10.13.1",
3
+ "version": "10.13.2-rc.1",
4
4
  "description": "OpenSource Vue/Nuxt/Pinia/Vuetify framework for web applications",
5
5
  "homepage": "https://github.com/Geode-solutions/OpenGeodeWeb-Front",
6
6
  "bugs": {
@@ -34,8 +34,8 @@
34
34
  "build": ""
35
35
  },
36
36
  "dependencies": {
37
- "@geode/opengeodeweb-back": "latest",
38
- "@geode/opengeodeweb-viewer": "latest",
37
+ "@geode/opengeodeweb-back": "next",
38
+ "@geode/opengeodeweb-viewer": "next",
39
39
  "@google-cloud/run": "3.2.0",
40
40
  "@kitware/vtk.js": "33.3.0",
41
41
  "@mdi/font": "7.4.47",