[mythtv] Upgrade database from command line
thomas at mashos.com
Thu Sep 4 15:08:45 UTC 2014
On Thu, Sep 4, 2014 at 3:48 AM, Grant Gardner <grant at lastweekend.com.au> wrote:
> On 3 September 2014 23:20, Stuart Auchterlonie <stuarta at squashedfrog.net> wrote:
>> On 02/09/14 23:38, Grant Gardner wrote:
>>> Hi all,
>>> Is there a mechanism to upgrade the database from the command line?
>>> I know that both mythtv-setup and mythbackend will do the upgrade, but I
>>> need something that can exit when the upgrade is complete.
>> We have talked about adding a --bootstrap mode to allow the backend
>> to initialize the DB and bring it up to date. eg.
>> mythbackend --bootstrap --dbuser <user> --dbpasswd <passwd> --dbname <db>
>> It's all part of being able to configure mythtv via the backend web
>> Would something along these lines work for what you are thinking?
> Yep, perfect. Shall I just have a crack at writing a patch for that?
>> Stuart Auchterlonie
>>> This is to support the experimentation I am doing with MythTV and Docker
>>> I can see the opportunity to provide a command line option to
>>> mythbackend or mythutil.
>>> If I was to write a feature patch which would be the best place to do it?
>>> mythtv-dev mailing list
>>> mythtv-dev at mythtv.org
>>> MythTV Forums: https://forum.mythtv.org
>> mythtv-dev mailing list
>> mythtv-dev at mythtv.org
>> MythTV Forums: https://forum.mythtv.org
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> MythTV Forums: https://forum.mythtv.org
IIRC, patches are always welcome. If you do decide to do this, can you
somehow incorporate a "default db settings" file or something? I'm
working on some packaging issues that we discussed in #mythtv
regarding our (Mythbuntu) default DB, but I really need a way to set
some defaults in the DB (eg. theme, storage group location, etc) and
I'm not finding a non-hacky way to do that.
More information about the mythtv-dev