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