Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/mymoney/storage/mymoneydbdef.cpp
Show All 30 Lines | |||||
31 | #include "mymoneyfile.h" | 31 | #include "mymoneyfile.h" | ||
32 | #include "mymoneyaccount.h" | 32 | #include "mymoneyaccount.h" | ||
33 | #include "mymoneyexception.h" | 33 | #include "mymoneyexception.h" | ||
34 | #include "mymoneystoragemgr.h" | 34 | #include "mymoneystoragemgr.h" | ||
35 | 35 | | |||
36 | #include <alkimia/alkvalue.h> | 36 | #include <alkimia/alkvalue.h> | ||
37 | 37 | | |||
38 | //***************** THE CURRENT VERSION OF THE DATABASE LAYOUT **************** | 38 | //***************** THE CURRENT VERSION OF THE DATABASE LAYOUT **************** | ||
39 | unsigned int MyMoneyDbDef::m_currentVersion = 12; | 39 | unsigned int MyMoneyDbDef::m_currentVersion = 13; | ||
40 | 40 | | |||
41 | // ************************* Build table descriptions **************************** | 41 | // ************************* Build table descriptions **************************** | ||
42 | MyMoneyDbDef::MyMoneyDbDef() | 42 | MyMoneyDbDef::MyMoneyDbDef() | ||
43 | { | 43 | { | ||
44 | FileInfo(); | 44 | FileInfo(); | ||
45 | PluginInfo(); | 45 | PluginInfo(); | ||
46 | Institutions(); | 46 | Institutions(); | ||
47 | Payees(); | 47 | Payees(); | ||
▲ Show 20 Lines • Show All 161 Lines • ▼ Show 20 Line(s) | 199 | { | |||
209 | appendField(MyMoneyDbTextColumn("accountTypeString")); | 209 | appendField(MyMoneyDbTextColumn("accountTypeString")); | ||
210 | appendField(MyMoneyDbColumn("isStockAccount", "char(1)")); | 210 | appendField(MyMoneyDbColumn("isStockAccount", "char(1)")); | ||
211 | appendField(MyMoneyDbTextColumn("accountName")); | 211 | appendField(MyMoneyDbTextColumn("accountName")); | ||
212 | appendField(MyMoneyDbTextColumn("description")); | 212 | appendField(MyMoneyDbTextColumn("description")); | ||
213 | appendField(MyMoneyDbColumn("currencyId", "varchar(32)")); | 213 | appendField(MyMoneyDbColumn("currencyId", "varchar(32)")); | ||
214 | appendField(MyMoneyDbTextColumn("balance")); | 214 | appendField(MyMoneyDbTextColumn("balance")); | ||
215 | appendField(MyMoneyDbTextColumn("balanceFormatted")); | 215 | appendField(MyMoneyDbTextColumn("balanceFormatted")); | ||
216 | appendField(MyMoneyDbIntColumn("transactionCount", MyMoneyDbIntColumn::BIG, UNSIGNED, false, false, 1)); | 216 | appendField(MyMoneyDbIntColumn("transactionCount", MyMoneyDbIntColumn::BIG, UNSIGNED, false, false, 1)); | ||
217 | appendField(MyMoneyDbTextColumn("customIcon", MyMoneyDbTextColumn::MEDIUM, false, false, 13)); | ||||
217 | MyMoneyDbTable t("kmmAccounts", fields); | 218 | MyMoneyDbTable t("kmmAccounts", fields); | ||
218 | t.buildSQLStrings(); | 219 | t.buildSQLStrings(); | ||
219 | m_tables[t.name()] = t; | 220 | m_tables[t.name()] = t; | ||
220 | } | 221 | } | ||
221 | 222 | | |||
222 | void MyMoneyDbDef::AccountsPayeeIdentifier() | 223 | void MyMoneyDbDef::AccountsPayeeIdentifier() | ||
223 | { | 224 | { | ||
224 | QList<QExplicitlySharedDataPointer <MyMoneyDbColumn> > fields; | 225 | QList<QExplicitlySharedDataPointer <MyMoneyDbColumn> > fields; | ||
▲ Show 20 Lines • Show All 552 Lines • Show Last 20 Lines |