← Back to team overview

brewtarget-devs team mailing list archive

Re: New migration code


To answer my own question. I already had the folders column defined, and
that seemed to have completely bulloxed the upgrade. Some clever
rearranging of the DatabaseSchemaHelper.cpp code seems to have worked
around the problem. I did have to restore a backup copy.

Before we start automatically deleting things from the user's DB, could we
maybe take a backup copy and let that sit around for a version or so? If I
hadn't taken a manual backup, I would have had one hell of a time putting
my db back together.


On Thu, Aug 7, 2014 at 11:32 PM, mik firestone <mikfire@xxxxxxxxx> wrote:

> If I build against HEAD with my host machine and then run brewtarget, I
> get a "ERROR: Database migration 3->4 failed". Every time I start
> brewtarget after that, I get a "ERROR: Database migration 1->4 failed".
> I am elbow deep in chasing down another problem, so I don't have a lot of
> spare cycles to attack this one. Can somebody tell me what the malfunction
> is, why I'm getting it, what I can do about it and do we expect this to
> happen to normal people or am I just kind of boned because I'm a dev?
> Thanks,
> Mik
> --
> In a world of ninja v. pirate, I pilot a Gundam

In a world of ninja v. pirate, I pilot a Gundam