Commit f6e3425d authored by Karel Slaný's avatar Karel Slaný Committed by Martin Straka

Renamed message ZFO table.

parent 92d7d7c4
......@@ -326,7 +326,7 @@ int main(int argc, char *argv[])
msgsTbl.reloadLocalisedDescription();
flsTbl.reloadLocalisedDescription();
evntsTbl.reloadLocalisedDescription();
zfosTbl.reloadLocalisedDescription();
msgZfoTbl.reloadLocalisedDescription();
/* init and open account database */
AccountDb globAccountDb("ACCOUNTS");
......
......@@ -356,8 +356,8 @@ namespace FlsTbl {
SQLiteTbl flsTbl(FlsTbl::tabName, FlsTbl::knownAttrs, FlsTbl::attrProps,
FlsTbl::colConstraints, FlsTbl::tblConstraint);
namespace ZfosTbl {
const QString tabName("zfos");
namespace MsgZfoTbl {
const QString tabName("message_zfos");
const QVector< QPair<QString, enum EntryType> > knownAttrs = {
{"id", DB_INTEGER}, /* NOT NULL*/
......@@ -392,6 +392,6 @@ namespace ZfosTbl {
{"size", {DB_INTEGER, ""}},
{"data", {DB_TEXT, ""}}
};
} /* namespace ZfosTbl */
SQLiteTbl zfosTbl(ZfosTbl::tabName, ZfosTbl::knownAttrs, ZfosTbl::attrProps,
ZfosTbl::colConstraints, ZfosTbl::tblConstraint);
} /* namespace MsgZfoTbl */
SQLiteTbl msgZfoTbl(MsgZfoTbl::tabName, MsgZfoTbl::knownAttrs,
MsgZfoTbl::attrProps, MsgZfoTbl::colConstraints, MsgZfoTbl::tblConstraint);
......@@ -46,6 +46,6 @@ extern SQLiteTbl flsTbl; /*!< Table 'files'. */
/*
* Zfo database.
*/
extern SQLiteTbl zfosTbl; /*!< Table 'zfos'. */
extern SQLiteTbl msgZfoTbl; /*!< Table 'message_zfos'. */
#endif /* _DB_TABLES_H_ */
......@@ -216,7 +216,7 @@ QList<class SQLiteTbl *> ZfoDb::listOfTables(void)
{
static QList<class SQLiteTbl *> tables;
if (tables.isEmpty()) {
tables.append(&zfosTbl);
tables.append(&msgZfoTbl);
}
return tables;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment