Replies: 1 comment
-
|
By changing the version number, the indexedDb API fires the update event when the Open method is executed. With the current version of the library it works, no changes are necessary. To test it, follow the steps below. I have uploaded a branch where I have added a new method that will help you test the update. I have also added a new index to the DB model with name 'GridColumnData' In this line I subscribe to the upgradeneeded event of the api: The code that runs: The branch is as follows: Steps |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I need to add a column to a model store. Do you have an example of how to update the database? I tried changing the version number before deploying and that didn't seem to help. I have checked the code out and tried to follow the logic and not finding how a database update is triggered.
Beta Was this translation helpful? Give feedback.
All reactions