From 15e6e992698867e2e43763798131007742c60359 Mon Sep 17 00:00:00 2001 From: edideaur Date: Mon, 23 Mar 2026 16:30:51 +0200 Subject: [PATCH] d-d-d-d-drop that bitch --- js/db.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/js/db.js b/js/db.js index 3e684e5..bcc6835 100644 --- a/js/db.js +++ b/js/db.js @@ -1,7 +1,7 @@ export class MusicDatabase { constructor() { this.dbName = 'MonochromeDB'; - this.version = 9; + this.version = 11; this.db = null; } @@ -24,6 +24,11 @@ export class MusicDatabase { request.onupgradeneeded = (event) => { const db = event.target.result; + // v10 introduced track_ratings (bad PR) — remove it + if (db.objectStoreNames.contains('track_ratings')) { + db.deleteObjectStore('track_ratings'); + } + // Favorites stores if (!db.objectStoreNames.contains('favorites_tracks')) { const store = db.createObjectStore('favorites_tracks', { keyPath: 'id' });