This event is fired during a transaction with mode versionchange, which should be available in event.target.transaction.
Although accessing the IdbDatabase allows us to create/delete object stores and set their indexes, it doesn't allow to access current stores. We need to access them via the IdbTransaction.
It would allow to change the indexes of the existing object stores, and to fix data in the stores or even migrate data from one store to the other.
This event is fired during a transaction with mode
versionchange, which should be available inevent.target.transaction.Although accessing the
IdbDatabaseallows us to create/delete object stores and set their indexes, it doesn't allow to access current stores. We need to access them via theIdbTransaction.It would allow to change the indexes of the existing object stores, and to fix data in the stores or even migrate data from one store to the other.