Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 9d7f912e authored by Boudewijn Rempt's avatar Boudewijn Rempt

Fix unique constraint on creating resources

Now resources of a different type, in the same storage with the
same name can be inserted in the database.
parent ef0398cc
......@@ -11,5 +11,5 @@ CREATE TABLE IF NOT EXISTS resources (
, version INTEGER /* the current version number of the resource (cached for performance reasons */
, FOREIGN KEY(resource_type_id) REFERENCES resource_types(id)
, UNIQUE(storage_id, resource_type_id, name)
, UNIQUE(storage_id, filename)
, UNIQUE(storage_id, filename, resource_type_id)
);
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