by275 / plex_autoscan

A maintained fork of Plex Autoscan
GNU General Public License v3.0
13 stars 2 forks source link

refactor autoscan database #12

Closed by275 closed 2 years ago

by275 commented 2 years ago

Important Changes

1. Autoscan database migration from legacy to v1

A table name is change from queueitemmodel to scan_item, which is peewee's new standard. Fields are changes as follows:

legacy v1
scan_path path
scan_for request_from
scan_section section_id
scan_type event_type
created_at new field

Variables across functions and threads are also renamed to match with above fields.

2. Deprecated SERVER_USE_SQLITE

You are force to use Autoscan database whatever you have in your config.json. Instead, no default values will be supplied for --queuefile arguments in CLI anymore. And thus, you can choose either of an in-memory, handy but no persistent, database or a file-based one with --queuefile argument.

Fixed/Improved