diff --git a/src/App.vue b/src/App.vue index c02d2271..93693dd3 100644 --- a/src/App.vue +++ b/src/App.vue @@ -55,7 +55,7 @@ export default { }); if ("indexedDB" in window) { - const request = indexedDB.open("piped-db", 3); + const request = indexedDB.open("piped-db", 4); request.onupgradeneeded = ev => { const db = request.result; console.log("Upgrading object store."); @@ -73,6 +73,10 @@ export default { store.createIndex("playlist_id_idx", "playlistId", { unique: true }); store.createIndex("id_idx", "id", { unique: true, autoIncrement: true }); } + if (!db.objectStoreNames.contains("channel_groups")) { + const store = db.createObjectStore("channel_groups", { keyPath: "groupName" }); + store.createIndex("groupName", "groupName", { unique: true }); + } }; request.onsuccess = e => { window.db = e.target.result; diff --git a/src/components/FeedPage.vue b/src/components/FeedPage.vue index 36749650..436726cc 100644 --- a/src/components/FeedPage.vue +++ b/src/components/FeedPage.vue @@ -18,6 +18,19 @@