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
f3140948
Commit
f3140948
authored
Sep 20, 2017
by
Karel Slaný
Committed by
Martin Straka
Sep 27, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed primary key from message ZFO table.
parent
f6e3425d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
src/sqlite/db_tables.cpp
src/sqlite/db_tables.cpp
+0
-3
No files found.
src/sqlite/db_tables.cpp
View file @
f3140948
...
...
@@ -360,7 +360,6 @@ namespace MsgZfoTbl {
const
QString
tabName
(
"message_zfos"
);
const
QVector
<
QPair
<
QString
,
enum
EntryType
>
>
knownAttrs
=
{
{
"id"
,
DB_INTEGER
},
/* NOT NULL*/
{
"dmID"
,
DB_INTEGER
},
/* NOT NULL*/
{
"testEnv"
,
DB_BOOLEAN
},
{
"lastAccessTime"
,
DB_INTEGER
},
...
...
@@ -373,13 +372,11 @@ namespace MsgZfoTbl {
};
const
QMap
<
QString
,
QString
>
colConstraints
=
{
{
"id"
,
"NOT NULL"
},
{
"dmID"
,
"NOT NULL"
}
};
const
QString
&
tblConstraint
(
",
\n
"
" PRIMARY KEY (id),
\n
"
" CHECK (testEnv IN (0, 1)),
\n
"
" FOREIGN KEY(dmID) REFERENCES messages (dmID)"
);
...
...
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