Commit 27f7cb09 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Label: Fix SQL syntax error

parent 5b3dd628
......@@ -62,7 +62,7 @@ bool Label::createTable(DBConnection dbConnection)
req = "CREATE TABLE IF NOT EXISTS LabelFileRelation("
"id_label INTEGER,"
"id_file INTEGER,"
"PRIMARY KEY (id_label, id_file)"
"PRIMARY KEY (id_label, id_file),"
"FOREIGN KEY(id_label) REFERENCES Label(id_label) ON DELETE CASCADE,"
"FOREIGN KEY(id_file) REFERENCES File(id_file) ON DELETE CASCADE);";
return SqliteTools::executeRequest( dbConnection, req );
......
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