add migration script

This commit is contained in:
Tiberiu Ichim 2026-02-05 17:04:21 +02:00
parent d442b46d7e
commit 5b9b43640b
7 changed files with 113 additions and 33 deletions

View file

@ -9,5 +9,5 @@ echo "---|-----------"
sqlite3 -header -column "$DB_PATH" "SELECT id, coverPath FROM books LIMIT 50;"
echo ""
echo "=== Unique Cover Path Prefixes ==="
echo "Unique cover path prefixes:"
sqlite3 "$DB_PATH" "SELECT DISTINCT SUBSTR(coverPath, 1, INSTR(coverPath || '/', '/') - 1) FROM books WHERE coverPath IS NOT NULL;" | sort -u