Replies: 5 comments 8 replies
-
Its because of you are adding the same column in alter query which is already added. This should be handled inside jsstore library, i will fix it. But i m not able to understand, why you are adding the same column ? |
Beta Was this translation helpful? Give feedback.
-
Can you try this, while i'm testing the new version: have a old working setup add the first version (without the alter) update the version and add the table to the database. thats what i did at first then started to doubt meself :( |
Beta Was this translation helpful? Give feedback.
-
And test is done. Sadly i have still the same error. jsstore.worker.js:884 Uncaught DOMException: Failed to execute 'deleteIndex' on 'IDBObjectStore': The specified index was not found.
at deleteColumn (.../jsstore.worker.js:884:23)
at .../jsstore.worker.js:908:21
at forObj (.../jsstore.worker.js:573:9)
at .../jsstore.worker.js:907:19
at Array.forEach (<anonymous>)
at IDBOpenDBRequest.dbOpenRequest.onupgradeneeded (.../jsstore.worker.js:888:23)
deleteColumn @ jsstore.worker.js:884
(anonymous) @ jsstore.worker.js:908
forObj @ jsstore.worker.js:573
(anonymous) @ jsstore.worker.js:907
dbOpenRequest.onupgradeneeded @ jsstore.worker.js:888
IndexedDB (async)
(anonymous) @ jsstore.worker.js:819
promise @ jsstore.worker.js:282
IDBUtil.initDb @ jsstore.worker.js:818
(anonymous) @ jsstore.worker.js:5546
promise @ jsstore.worker.js:282
QueryManager.initDb @ jsstore.worker.js:5545
QueryManager.executeQuery @ jsstore.worker.js:5331
(anonymous) @ jsstore.worker.js:5456
Promise.then (async)
QueryManager.run @ jsstore.worker.js:5455
self.onmessage @ jsstore.worker.js:5580
jsstore.worker.js:838 error Event {isTrusted: true, type: "error", target: IDBOpenDBRequest, currentTarget: IDBOpenDBRequest, eventPhase: 2, …}
dbOpenRequest.onerror @ jsstore.worker.js:838
error (async)
(anonymous) @ jsstore.worker.js:837
promise @ jsstore.worker.js:282
IDBUtil.initDb @ jsstore.worker.js:818
(anonymous) @ jsstore.worker.js:5546
promise @ jsstore.worker.js:282
QueryManager.initDb @ jsstore.worker.js:5545
QueryManager.executeQuery @ jsstore.worker.js:5331
(anonymous) @ jsstore.worker.js:5456
Promise.then (async)
QueryManager.run @ jsstore.worker.js:5455
self.onmessage @ jsstore.worker.js:5580
jsstore.worker.js:598 {message: "Version change transaction was aborted in upgradeneeded event handler.", type: "AbortError"}
LogHelper.logError @ jsstore.worker.js:598
getError @ jsstore.worker.js:960
(anonymous) @ jsstore.worker.js:5465
Promise.catch (async)
QueryManager.run @ jsstore.worker.js:5463
self.onmessage @ jsstore.worker.js:5580
index.js:2160 Uncaught (in promise) {message: "Version change transaction was aborted in upgradeneeded event handler.", type: "AbortError"}
initDb @ index.js:2160
async function (async)
initDb @ index.js:2158
(anonymous) @ index.js:580 |
Beta Was this translation helpful? Give feedback.
-
BTW, i created the same table on a new db and that table works fine. It has to do with adding a table to an existing db. |
Beta Was this translation helpful? Give feedback.
-
@nielsnl68 you were right, there is issue occuring when adding table to existing database. Although error is different from what you are saying. I have fixed this in v - 4.3.4. I hope this fixes the issue, let me know. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm a little bit lost again with schema versioning and adding new tables.
i tried to add a new new table to my db. i updated the version and created the following:
or:
with this initDB:
I getting the following error messages:
Beta Was this translation helpful? Give feedback.
All reactions