Commit 499eae6a authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

Metadata: Use the entity type as part of the primary key

parent 20b12b14
......@@ -188,7 +188,7 @@ void Metadata::createTable(sqlite::Connection* connection)
"entity_type INTEGER,"
"type INTEGER,"
"value TEXT,"
"PRIMARY KEY (id_media, type)"
"PRIMARY KEY (id_media, entity_type, type)"
")";
sqlite::Tools::executeRequest( connection, 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