add Partial information about IndexedDB for browsers supporting the old way of upgrading a database. Also added that Chrome 24 doesn't need a prefix.
I'm not sure for Mobile Firefox (and also maybe we'd need other versions in caniuse.com to be acurate).
add Partial information about IndexedDB for browsers supporting the o…
…ld way of upgrading a database. Also added that Chrome 24 doesn't need a prefix.
Thanks! Could you explain or link me to an explanation on the difference between the old and new way you refer to?
The difference lies in the open method (https://developer.mozilla.org/en-US/docs/IndexedDB/IDBFactory#open) and setVersion (https://developer.mozilla.org/en-US/docs/IndexedDB/IDBDatabase#setVersion%28%29)
This shim should make it easier to use the new method even in older implementations : https://gist.github.com/3361666#file_upgradeneeded.js (haven't tried it yet, will do soon)
The difference is when you need to upgrade the structure of the database (ie: increase the version).
In the new implementation, you simply put an higher number in the second parameter of the open method, and implement the upgrade in the onupgradeneeded handler.
In the old implementation, you're supposed to do the following in the success handler of the open method:
Add Web Cryptography feature
Related feature request:
Rename “push notifications“ to “push messages” #15
- missing title