IDBUpgradeTransaction
IDBUpgradeTransaction is a specialized transaction type in the IndexedDB API that represents the version-change phase of a database upgrade. It is exposed during the onupgradeneeded event of an IDBOpenDBRequest when a database is opened with a higher version than its current one. The upgrade transaction is available as event.target.transaction and is used to apply schema changes as part of upgrading the database.
This transaction is a variant of the standard IDBTransaction and inherits its API, while being explicitly associated
Lifecycle and constraints: the upgrade transaction exists only during the version-change flow initiated by the upgrade.
In practice, IDBUpgradeTransaction is the mechanism through which a database’s schema is evolved in a controlled,