Skip to content
Snippets Groups Projects
Verified Commit 312d0d1c authored by Timm Fitschen's avatar Timm Fitschen
Browse files

Enable versioning by default

parent 4ce7b16a
Branches
Tags
No related merge requests found
......@@ -333,7 +333,6 @@ CREATE PROCEDURE setFileProperties (
)
BEGIN
DECLARE IVersion INT UNSIGNED DEFAULT NULL;
IF is_feature_config("ENTITY_VERSIONING", "ENABLED") THEN
SELECT max(e._iversion) INTO IVersion
FROM entity_version AS e
......@@ -398,3 +397,5 @@ END //
delimiter ;
INSERT INTO feature_config (_key, _value) VALUES ("ENTITY_VERSIONING", "ENABLED");
......@@ -85,7 +85,8 @@ retrieveEntityParentsBody: BEGIN
JOIN entities AS e
ON (i.parent = e.id)
WHERE i.child = EntityID
AND i.child_iversion = IVersion;
AND i.child_iversion = IVersion
AND i.rpath = EntityID;
LEAVE retrieveEntityParentsBody;
END IF;
......@@ -101,7 +102,7 @@ retrieveEntityParentsBody: BEGIN
JOIN entities AS e
ON (i.parent = e.id)
WHERE i.child = EntityID
AND i.rpath = CAST(EntityID AS CHAR) COLLATE utf8_unicode_ci;
AND i.rpath = EntityID;
END
//
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment