Deleting an ebook library leaves orphaned ebook records #24
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
From Nye's review of #17 (F4).
Deleting a library nilifies
ebooks.library_id, so its ebooks stay in the table with no library. No scan will ever clean them up, and they keep showing as downloads on their books.Fix: delete the library's ebooks with it (
on_delete: :delete_all, or delete them inLibraries.delete_library/1along with their stored cover thumbnails), keeping the books in the catalog.