Closed yuliswe closed 7 years ago
Can we also make it so we don't have to clear IndexedDB.. if the schema has changed just make IndexedDB do an update that clears the database.
You can do .version(2) in dexie for dexie to do the autoUpgrade for you I think.
Not sure how to do that :( it requires both .version(1) and .version(2) to be defined.
Define both, and the upgrade process should do it for you.
Oh well. It requires me to write an upgrade function. I lost track of what's changed :(
You can just make it clear the database, since that was what you suggested in the first place
Fine -- leave it as is, and we'll deal with it later. Change the database name though (so instead of seashell-e45lee, do instead seashell2-e45lee).
You might have to clear your browser's indexedDB after merge.