home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Database: Refactor MP1 database for multi seat usage
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Anthony Vaughan" data-source="post: 1288392" data-attributes="member: 153283"><p>I have posted a new version (1.29.013) to the first post in this thread.</p><p></p><p>This update contains the following changes:</p><p>1) A few bug-fixes;</p><p>2) Database rationalization.</p><p></p><p>The database changes are as follows:</p><p> 1) 'movieinfo' held date fields - lastupdate, dateadded and datewatched. This means that we only hold this information for movies when they should be held for all videos. I have moved dateadded and lastupdate to the 'movie' table and datewatched to the resume table. It seemed to me that datewatched should always have been stored only when movies have been watched and resume seems like the logical place to do that.</p><p>2) 'movie' held information about the watched status. Again, it seems more logical to store watched percent and times watched in the resume table because that data is only relevant when a movie has been watched (which is what the 'resume' table reflects.</p><p>3) 'movie' also contained a watched column - indicating whether a movie has been watched. However, the simple presence of a 'resume' entry for a movie tells us that a movie has been watched. The code now checks whether a resume record exists for a movie with a 'stoptime' greater than zero to return whether a movie has been watched.</p><p></p><p>These are the last changes I propose to make to the database and I feel these changes are worth the extra effort involved.</p><p></p><p>I recommend that anyone testing the refactored application start again from scratch. However, if you wish to keep your current data, I have provided a script file ('MediaPortalRefactor1.29.013 database changes.sql') containing instructions as to how to manually implement these changes (though I think it would be safer to recreate the Video database from scratch).</p><p></p><p>Tony</p></blockquote><p></p>
[QUOTE="Anthony Vaughan, post: 1288392, member: 153283"] I have posted a new version (1.29.013) to the first post in this thread. This update contains the following changes: 1) A few bug-fixes; 2) Database rationalization. The database changes are as follows: 1) 'movieinfo' held date fields - lastupdate, dateadded and datewatched. This means that we only hold this information for movies when they should be held for all videos. I have moved dateadded and lastupdate to the 'movie' table and datewatched to the resume table. It seemed to me that datewatched should always have been stored only when movies have been watched and resume seems like the logical place to do that. 2) 'movie' held information about the watched status. Again, it seems more logical to store watched percent and times watched in the resume table because that data is only relevant when a movie has been watched (which is what the 'resume' table reflects. 3) 'movie' also contained a watched column - indicating whether a movie has been watched. However, the simple presence of a 'resume' entry for a movie tells us that a movie has been watched. The code now checks whether a resume record exists for a movie with a 'stoptime' greater than zero to return whether a movie has been watched. These are the last changes I propose to make to the database and I feel these changes are worth the extra effort involved. I recommend that anyone testing the refactored application start again from scratch. However, if you wish to keep your current data, I have provided a script file ('MediaPortalRefactor1.29.013 database changes.sql') containing instructions as to how to manually implement these changes (though I think it would be safer to recreate the Video database from scratch). Tony [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Database: Refactor MP1 database for multi seat usage
Contact us
RSS
Top
Bottom