IDBDatabase.setVersion()
method has been removed. See the compatibility table for version details.IDBOpenDBRequest
interface which has now the onblocked
handler and the newly needed onupgradeneeded
one.The IDBVersionChangeRequest
interface the IndexedDB API represents a request to change the version of a database. It is used only by the setVersion()
method of IDBDatabase
.
Inherits from: IDBRequest
IDBVersionChangeRequest.setVersion
versionchange
transaction on the connected database in a separate thread.Attribute | Type | Description |
---|---|---|
onblocked | Function | The event handler for the blocked event. |
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | From 12 to 23 -webkit | From 4.0 (2.0) to 4.0 (2.0) | No support | No support | No support |
Feature | Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | No support | 6.0 (6.0) | ? | No support | No support |
© 2005–2017 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/IDBVersionChangeRequest