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

Removed primary key from message ZFO table.

parent f6e3425d
......@@ -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)"
);
......
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