setVersion method
Obsolete. No longer supported.
Note While supported in pre-release versions, this method is obsolete and the upgradeneeded event should be used instead. Applications using this property should be updated accordingly.
Syntax
var retVal = IDBDatabase.setVersion(version);Parameters
- version [in]
-
Type: DOMString
The new version identifier.
Return value
Type: IDBVersionChangeRequest
The transaction associated with the VERSION_CHANGE request.
Standards information
Remarks
The setVersion method was specified by an early draft of the Indexed Database specification. The method was removed from later drafts of the specification and is no longer supported.
To create object stores, indexes, and other IndexedDB objects, use the version parameter of the open method of the indexedDB property to generate an onupgradeneeded event.
See also
Build date: 11/22/2012
