From 061dd91a21a8d1647cab14014ad30122763b5b1c Mon Sep 17 00:00:00 2001 From: Deven Gangwani Date: Thu, 14 Mar 2024 14:41:35 +0530 Subject: [PATCH] Change IDB to version 2 to force new structure --- components/data_worker.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/data_worker.tsx b/components/data_worker.tsx index 5336994..2f04785 100644 --- a/components/data_worker.tsx +++ b/components/data_worker.tsx @@ -111,7 +111,7 @@ async function start_IDB() { //if this resolves, the global variable 'db' should return new Promise((resolve, reject) => { db = ""; try { - const openRequest = indexedDB.open("students", 1); + const openRequest = indexedDB.open("students", 2); openRequest.addEventListener("error", (error) => { // console.error("Failed to access local database."); // console.log(error);