<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Sep 23, 2015 at 4:47 AM, Paul Harrison <span dir="ltr"><<a href="mailto:mythtv@sky.com" target="_blank">mythtv@sky.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">On 23/09/15 08:55, Hika van den Hoven wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Here's the thing...removing mythweather, music and news doesn't delete the<br>
corresponding tables, even if you use purge in apt-get.<br>
So when you reinstall and fire up the frontend, it gives the same<br>
complaints about the tables.<br>
HOWEVER, if you drop the tables after purging and reinstalling, the<br>
frontend log complains it can't find the tables in order to upgrade them.<br>
So purging/reinstalling doesn't seem to recreate/initialize the tables.<br>
I gotta sleep...but I appreciate your help. Hopefully you and others will<br>
see the issue and I'll fight the good fight when I wake up.<br>
Thanks!<br>
</blockquote>
I'm surprised! I would expect the same proces that caused the problem<br>
to recreate the tables. How then if you add a plug-in to a running<br>
system? Normally on a fresh or updated system the frontend when first<br>
run does this!<br>
<br>
<br>
</blockquote>
<br></span>
Each plugin has it own schema version and we store the version in the settings table so for MythNews it's  'NewsDBSchemaVer'.<br>
<br>
The database upgrade code looks at the schema version in the settings table and only attempts to update it if it is lower than the actually schema version.<br>
<br>
Assuming no update to the plugins was performed this looks like a DB corruption problem of some sort so running <a href="http://optimize_mythdb.pl" rel="noreferrer" target="_blank">optimize_mythdb.pl</a> would be a good idea.<br>
<br>
If you have dropped the MythNews table you will have to remove the 'NewsDBSchemaVer' schema version setting in the settings table to get the plugin to recreate the tables.<br></blockquote></div><br></div><div class="gmail_extra">Just to clarify your last sentence...if I uninstall Mythnews/weather/music, and drop their tables, I then set the corresponding SchemaVer to blank? i.e UPDATE settings SET NewsDBSchemaVer='';<br><br></div><div class="gmail_extra">For the record, here are the other values:<br><br>DBSchemaVer     1317     NULL<br>ArchiveDBSchemaVer     1005     NULL<br>GameDBSchemaVer     1016     NULL<br>MusicDBSchemaVer     1000     NULL<br>PhoneDBSchemaVer     1001     NULL<br>WeatherDBSchemaVer     1000     NULL<br>BrowserDBSchemaVer     1002     NULL<br>NetvisionDBSchemaVer     1004     NULL<br>NewsDBSchemaVer     1000     NULL<br>WebDBSchemaVer     4     NULL<br>GalleryDBSchemaVer     1003     NULL<br></div></div>