mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-04 15:09:44 +00:00
add migration script
This commit is contained in:
parent
d442b46d7e
commit
5b9b43640b
7 changed files with 113 additions and 33 deletions
|
|
@ -3,11 +3,8 @@
|
|||
|
||||
DB_PATH="/mnt/docker/work/books/audiobookshelf/config/absdatabase.sqlite"
|
||||
|
||||
echo "=== libraryItems (Paths) ==="
|
||||
echo "ID | PATH | REL_PATH"
|
||||
echo "---|------|---------"
|
||||
sqlite3 -header -column "$DB_PATH" "SELECT id, path, relPath FROM libraryItems LIMIT 100;"
|
||||
|
||||
echo ""
|
||||
echo "=== Unique Path Prefixes ==="
|
||||
echo "Unique path prefixes:"
|
||||
sqlite3 "$DB_PATH" "SELECT DISTINCT SUBSTR(path, 1, INSTR(path || '/', '/') - 1) FROM libraryItems;" | sort -u
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue