Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-mysqlbackend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-mysqlbackend
Commits
312d0d1c
Verified
Commit
312d0d1c
authored
5 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
Enable versioning by default
parent
4ce7b16a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
patches/patch20200415-3.0.0/versioning.sql
+2
-1
2 additions, 1 deletion
patches/patch20200415-3.0.0/versioning.sql
procedures/retrieveEntityParents.sql
+3
-2
3 additions, 2 deletions
procedures/retrieveEntityParents.sql
with
5 additions
and
3 deletions
patches/patch20200415-3.0.0/versioning.sql
+
2
−
1
View file @
312d0d1c
...
...
@@ -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"
);
This diff is collapsed.
Click to expand it.
procedures/retrieveEntityParents.sql
+
3
−
2
View file @
312d0d1c
...
...
@@ -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
//
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment