[Kmymoney-devel] How to upgrades the database
christian-david at web.de
Sun Aug 10 11:24:08 UTC 2014
as you can see from  I started to familiarize myself with the database
Now I added a new column to kmmFieldInfo in MyMoneyDbDef::FileInfo(void)
UNSIGNED, false, false, 8));
First question: is that correct?
If I open KMyMoney with a sql-database it crashes because it tries to select
the new column "hiOnlineJobId" (or even tags if the version is 6) before it
updated the database.
I did some investigation and noticed that the upgradeToVx() methods call
readFileInfo() and writeFileInfo() quite often. But these methods use
m_db.m_tables["kmmFileInfo"].selectAllString(). This leads to the request for
non-existing columns (-> exception -> crash).
Have I done something wrong?
Btw: what is fixLevel in kmmFileInfo used for?
Have a nice day!
P.S.: I think we have to rethink how the hole storage system should work. For
beginners like me it is a lot of work to understand it, way to much if you
remember which tasks they solve. There are to many hacks, abstractions and
methods which do nothing else then calling another method without any changes.
I feel like being in a pinball machine :( But especially open source projects
which are based on the work of volunteers must make it easy for new
contributors to help. If I had known what work is waiting for me, I had never
More information about the KMyMoney-devel