Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Datovka projects
mobile Datovka
Commits
f6e3425d
Commit
f6e3425d
authored
Sep 20, 2017
by
Karel Slaný
Committed by
Martin Straka
Sep 27, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed message ZFO table.
parent
92d7d7c4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
src/main.cpp
src/main.cpp
+1
-1
src/sqlite/db_tables.cpp
src/sqlite/db_tables.cpp
+5
-5
src/sqlite/db_tables.h
src/sqlite/db_tables.h
+1
-1
src/sqlite/zfo_db.cpp
src/sqlite/zfo_db.cpp
+1
-1
No files found.
src/main.cpp
View file @
f6e3425d
...
...
@@ -326,7 +326,7 @@ int main(int argc, char *argv[])
msgsTbl
.
reloadLocalisedDescription
();
flsTbl
.
reloadLocalisedDescription
();
evntsTbl
.
reloadLocalisedDescription
();
z
fo
s
Tbl
.
reloadLocalisedDescription
();
msgZ
foTbl
.
reloadLocalisedDescription
();
/* init and open account database */
AccountDb
globAccountDb
(
"ACCOUNTS"
);
...
...
src/sqlite/db_tables.cpp
View file @
f6e3425d
...
...
@@ -356,8 +356,8 @@ namespace FlsTbl {
SQLiteTbl
flsTbl
(
FlsTbl
::
tabName
,
FlsTbl
::
knownAttrs
,
FlsTbl
::
attrProps
,
FlsTbl
::
colConstraints
,
FlsTbl
::
tblConstraint
);
namespace
Zfo
s
Tbl
{
const
QString
tabName
(
"zfos"
);
namespace
Msg
ZfoTbl
{
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 Zfo
s
Tbl */
SQLiteTbl
z
fo
s
Tbl
(
Zfo
s
Tbl
::
tabName
,
Zfo
s
Tbl
::
knownAttrs
,
ZfosTbl
::
attrProps
,
Zfo
s
Tbl
::
colConstraints
,
Zfo
s
Tbl
::
tblConstraint
);
}
/* namespace
Msg
ZfoTbl */
SQLiteTbl
msgZ
foTbl
(
Msg
ZfoTbl
::
tabName
,
Msg
ZfoTbl
::
knownAttrs
,
MsgZfoTbl
::
attrProps
,
Msg
ZfoTbl
::
colConstraints
,
Msg
ZfoTbl
::
tblConstraint
);
src/sqlite/db_tables.h
View file @
f6e3425d
...
...
@@ -46,6 +46,6 @@ extern SQLiteTbl flsTbl; /*!< Table 'files'. */
/*
* Zfo database.
*/
extern
SQLiteTbl
z
fo
s
Tbl
;
/*!< Table 'zfos'. */
extern
SQLiteTbl
msgZ
foTbl
;
/*!< Table '
message_
zfos'. */
#endif
/* _DB_TABLES_H_ */
src/sqlite/zfo_db.cpp
View file @
f6e3425d
...
...
@@ -216,7 +216,7 @@ QList<class SQLiteTbl *> ZfoDb::listOfTables(void)
{
static
QList
<
class
SQLiteTbl
*>
tables
;
if
(
tables
.
isEmpty
())
{
tables
.
append
(
&
z
fo
s
Tbl
);
tables
.
append
(
&
msgZ
foTbl
);
}
return
tables
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment