IDBVersionChangeEvent

Table of contents

  1. 1. Attributes
  2. 2. Browser compatibility
Table of contents
  1. 1. Attributes
  2. 2. Browser compatibility

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.

Attributes

Attribute Type Description
oldVersion readonly unsigned long long Returns the old version of the database.
newVersion readonly unsigned long long Returns the new version of the database.
version

Deprecated

readonly DOMString
Warning: While this property is still implemented by not up-to-date browsers, the latest specification does replace it by the oldVersion and newVersion attributes. See compatibility table to know what browsers support them.
The new version of the database in a VERSION_CHANGE transaction.

Browser compatibility

  • Desktop
  • Mobile

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

From 4.0 (2.0) to

9.0 (9.0)

-- -- --
oldVersion --

10.0 (10.0)

-- -- --
newVersion --

10.0 (10.0)

-- -- --
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support -- 4.0 (2.0) ? -- --

Tags (0)

Edit tags
  • No tags

Attachments (0)

 

Attach file