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. |
Desktop | ||||||
---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
Basic support | 12 — 23
|
? | No | No | No | No |
setVersion
|
No | No | No | No | No | No |
Mobile | |||||||
---|---|---|---|---|---|---|---|
Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
Basic support | ? | No | ? | No | No | No | No |
setVersion
|
No | No | No | No | No | No | No |
© 2005–2018 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