You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've checked #16 but could not find any solution in there.
Basically I've changed some table definition (stores) and cleared browser data for my domain (currently localhost). Then when running again my app db.load() fails with:
Error: Dexie specification of currently installed DB version is missing
I've also tried to change db.version(2) but nothing changes.
I'm 100% lost. Do I miss something?
Thanks a lot.
The text was updated successfully, but these errors were encountered:
Whenever you add a store or index to your schema, you must do that in another version, but keep the old version schema as long as there are users out there with the old version installed.
So basically, you would need to define both version(1) and version(2). This is explained in Design#database-versioning.
To sum it up:
Changes to schemas should be new versions of the schema, don't change the existing one.
Keep all schema versions that have been published (that may exist out there...)
Note: Dexie will provide the migration in backround in case a user with version 1 installed loads your version 2-app, but it would need to know the structure (how it looked like) in version 1 in order to do that.
I've checked #16 but could not find any solution in there.
Basically I've changed some table definition (
stores
) and cleared browser data for my domain (currently localhost). Then when running again my appdb.load()
fails with:I've also tried to change
db.version(2)
but nothing changes.I'm 100% lost. Do I miss something?
Thanks a lot.
The text was updated successfully, but these errors were encountered: