Skip to content

Commit

Permalink
Fix profiles store not being created
Browse files Browse the repository at this point in the history
  • Loading branch information
tfedor committed May 28, 2024
1 parent 6fd4494 commit 1236e5b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/js/Background/Db/Migration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ async function upgrade(

if (oldVersion >= 1) {
db.deleteObjectStore("storePageData");
db.deleteObjectStore("profiles");
db.deleteObjectStore("rates");
db.deleteObjectStore("coupons");
db.deleteObjectStore("giftsAndPasses");
Expand All @@ -43,6 +44,9 @@ async function upgrade(
db.createObjectStore("storePageData")
.createIndex("idx_expiry", "expiry");

db.createObjectStore("profiles")
.createIndex("idx_expiry", "expiry");

db.createObjectStore("rates")
.createIndex("idx_expiry", "expiry");

Expand Down

0 comments on commit 1236e5b

Please sign in to comment.