upgradeneeded event

The IndexedDB event fired when a page opens a database with a higher version number than the stored one, the only place the schema can change.

In more detail

indexedDB.open('app', 3) on a database at version 2 fires upgradeneeded with oldVersion 2 and newVersion 3, inside a special versionchange transaction. Create or change object stores and indexes there.

Related terms

Taught in

References