most of way through editing publisher, author, genre on book... decided now is time to make book<->publisher a normal 1-to-m as it should be

This commit is contained in:
2020-12-02 20:55:43 +11:00
parent 93383c3bc0
commit b6ba97f049
3 changed files with 41 additions and 21 deletions

17
README
View File

@@ -26,10 +26,14 @@ python3 main.py
### TODO:
- need to save a book
- still missing author, publisher, genre, notes, blurb. not sure about series/loan/subbook, etc.
- still missing publisher, notes, blurb.
- not sure about series/loan/subbook, etc.
- need to create all classes (green + button)
- need to delete all classes (and watch for referential integrity)
- need to add 1 author to book, book to sub_book, series
- need to delete 1 author from book
- need to delete 1 book from sub_book, series, loan
- need to create/add books to loan
- add stats page
- show books on shelf list
- show books to buy view / printable
@@ -41,3 +45,14 @@ python3 main.py
offer to move parent/child series orders as well to match (think Thomas Covenant)
### WARNING WARNING, edit book has broken publisher setting on GET of /book/<id>, DONT SAVE, until FIX as per below ###
need to get publisher to be a single 1-to-many Foreign key, not linkage many-to-many table
think I recall add new field to book (new_pub_id) as Foreign key
use ORM to copy into new_pub_id, from publisher[0].id
rename publisher to old_pub_field
rename new_pub_id to publisher
TEST
delete book_publisher_link table
delete column old_pub_field
profit