diff --git a/src/extension/VERSION b/src/extension/VERSION index 867e524..589268e 100644 --- a/src/extension/VERSION +++ b/src/extension/VERSION @@ -1 +1 @@ -1.2.0 \ No newline at end of file +1.3.0 \ No newline at end of file diff --git a/src/extension/src/quarchive-background.ts b/src/extension/src/quarchive-background.ts index 7336ed9..04188e1 100644 --- a/src/extension/src/quarchive-background.ts +++ b/src/extension/src/quarchive-background.ts @@ -2,7 +2,7 @@ import { QuarchiveURL, Bookmark, DisallowedSchemeError } from "./value_objects.js" -const SCHEMA_VERSION = 3; +const SCHEMA_VERSION = 4; // An hour const PERIODIC_FULL_SYNC_INTERVAL_IN_MINUTES = 60; @@ -465,8 +465,8 @@ function disableListeners() { } } -function clearVersion2IDBSchema (db: IDBDatabase): void { - console.log("clearing idb schema from version 2"); +function clearIDBSchema (db: IDBDatabase): void { + console.log("clearing idb schema"); try { db.deleteObjectStore("bookmarks"); } catch (e) { @@ -504,8 +504,8 @@ if (typeof window !== 'undefined') { const oldVersion = event.oldVersion; console.log("running upgrade %d -> %d", oldVersion, db.version); - if (oldVersion < 3) { - clearVersion2IDBSchema(db); + if (oldVersion < 4) { + clearIDBSchema(db); } createIDBSchema(db);