Server Version#: 1.41.6.9685
Platform: Truenas Core (freebsd)
Quick background, when I updated from 1.2X to 1.4X, I ended up needing to delete the contents of Plug-in Support/Databases to get everything back up and running.
I’ve been endeavoring to re-integrate the view history from my old com.plexapp.plugins.library.db into the current database. The progress I’ve made so far:
-Identified metadata_item_views table as containing the play history
-Added view_type column with the INTEGER type and default 0 to old table
-Incremented id entries in current metadata_item_views so as no not overlap old entries
-Imported metadata_item_views into current db
Things mostly show up correctly in view history, save for a handful of "unknown user"s in the User column via the Plex UI. I bet the ‘unknown user’ entries are from a couple users that haven’t used this server since I updated, most users show up correctly. However several features like the ‘Top Users’ section and the ‘Play History’ graph don’t seem to account for the added view history.
I would really like to get this fully integrated / working, the old db contains a lot of my mother’s view history and for personal reasons I would really enjoy being able to look at this from time to time.
I guess I have two questions:
- Is what I’m trying to do even possible?
- Is there a better procedure for getting it done? All of the database versions are backed up, so I can start the process from scratch at any time.
I might attempt to revert to 1.2X and integrate the new view history into the old db instead, I suspect the creation date of the server and/or database has something to do with it. There aren’t any new features in 1.4X that I need so 1.2X will serve just fine.
EDIT: Looks like I might need to grab metadata_item_settings in a similar fashion. Barring any different feedback I’ll try that next.