« IDBVersionChangeEvent

The IDBVersionChangeEvent interface of the IndexedDB API indicates that the version of the database has changed.

The specification has changed and some not up-to-date browsers only support the deprecated unique attribute, version, from an early draft version.


IDBVersionChangeEvent.oldVersion Read only
Returns the old version of the database.
IDBVersionChangeEvent.newVersion Read only
Returns the new version of the database.
IDBVersionChangeEvent.version Read only

The new version of the database in a versionchange transaction.

Warning: While this property is still implemented in older browsers, the latest specification replaces it with the oldVersion and newVersion attributes. See the compatibility table to know what browsers support them.




Specification Status Comment
Indexed Database API Candidate Recommendation  

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
version 12

From 4.0 (2.0) to

9.0 (9.0)

Not supported Not supported Not supported
oldVersion 23

10.0 (10.0)

10 17 Not supported
newVersion 23

10.0 (10.0)

10 17 Not supported
Feature Android Firefox Mobile (Gecko) Firefox OS IE Phone Opera Mobile Safari Mobile
Basic support 4.4 4.0 (2.0) 1.0.1 10 17 Not supported


Document Tags and Contributors

Contributors to this page: scottrowe, nehasharma, jswisher, chrisdavidmills, teoli, grendel
Last updated by: chrisdavidmills,