[mythtv] [PATCH] prompt before upgrading database

Andrew Dennison andrew-lists at optusnet.com.au
Thu Oct 21 12:44:48 UTC 2004

Isaac Richards wrote:
> On Sunday 17 October 2004 08:15 am, Andrew Dennison wrote:
>>I recnetly had an "incident" where I ran a cvs version of setup on my
>>main system. The database schema was upgraded a few levels before I had
>>realised what I'd done:0
>>Attached patch (dbcheck0.diff) makes setup prompt before it starts the
>>dbcheck1.diff prevents mythbackend and mythfrontend from also updating
>>the db - forces you to run setup if db isn't up to date. This may? not
>>be acceptable so it's split into a separate patch.
>>Maybe this will help others who start upgrades late at night too.
> I won't apply this.  If you're upgrading one piece of myth, you need to 
> upgrade all of it.  It shouldn't matter what's restarted first.

Helps when you forgot to backup the database first, or run it on the 
wrong system:) Would you accept a warning with a few second pause before 
the db is upgraded? This gives you the option to bail out if desired, 
without breaking existing functionality. Just thought something along 
these lines may be worthwhile.

More information about the mythtv-dev mailing list