mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-05 23:49:41 +00:00
add migration script
This commit is contained in:
parent
d442b46d7e
commit
5b9b43640b
7 changed files with 113 additions and 33 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue