← Back to team overview

brewtarget-devs team mailing list archive

Re: Over-writing databases


Is this the (ideal) process for upgrading on windows?

1) Ask user where old installation is.
2) Copy old database into new installation.
3) Start up as normal and all the migrations happen.

On Wed, Aug 21, 2013 at 9:22 PM, mik firestone <mikfire@xxxxxxxxx> wrote:

> I'm slowly working on getting the Windows upgrades working the way I
> expected them to work. I actually have the v1.2.x databases being properly
> upgraded.
> The v2.0.x databases are proving to be more challenging, for all that the
> operations are theoretically easier. In short, I cannot figure out how to
> copy the old database into place. For a lot of reasons (most of them
> involving prompts, file browsers, etc.), I cannot do this until the
> MainWindow is instantiated and qApp->exec() is called. It seems mucking
> with the database file after MainWindow has been instantiated causes a core
> dump.
> Does anybody have a clever idea on how to do this?
> Mik
> --
> In a world of ninja v. pirate, I pilot a Gundam
> --
> Mailing list: https://launchpad.net/~brewtarget-devs
> Post to     : brewtarget-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~brewtarget-devs
> More help   : https://help.launchpad.net/ListHelp

Philip G. Lee

Follow ups