Re-increate Dexie version number
This commit is contained in:
parent
ad36f5db46
commit
9403873a7b
3 changed files with 14 additions and 6 deletions
|
@ -11,7 +11,7 @@ const createDatabase = (username) => {
|
|||
const dbName = username ? `ntfy-${username}` : "ntfy"; // IndexedDB database is based on the logged-in user
|
||||
const db = new Dexie(dbName);
|
||||
|
||||
db.version(1).stores({
|
||||
db.version(2).stores({
|
||||
subscriptions: "&id,baseUrl,[baseUrl+mutedUntil]",
|
||||
notifications: "&id,subscriptionId,time,new,[subscriptionId+new]", // compound key for query performance
|
||||
users: "&baseUrl,username",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue