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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-mysqlbackend
Commits
a213a3fd
Verified
Commit
a213a3fd
authored
5 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
WIP: update patch to new name_data
parent
7a320598
No related branches found
No related tags found
1 merge request
!12
DRAFT: ENH: file system: core
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
patches/patch20200623-3.0.0rc2/patch.sh
+44
-0
44 additions, 0 deletions
patches/patch20200623-3.0.0rc2/patch.sh
patches/patch20200623-3.0.0rc2/patch.sql
+2
-1
2 additions, 1 deletion
patches/patch20200623-3.0.0rc2/patch.sql
with
46 additions
and
1 deletion
patches/patch20200623-3.0.0rc2/patch.sh
0 → 100755
+
44
−
0
View file @
a213a3fd
#!/bin/bash
#
# ** header v3.0
# This file is a part of the CaosDB Project.
#
# Copyright (C) 2018 Research Group Biomedical Physics,
# Max-Planck-Institute for Dynamics and Self-Organization Göttingen
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
# ** end header
#
# Refactors the entities table and move all names to name_data
# Update mysql schema to version v3.0.0-rc1
NEW_VERSION
=
"v3.0.0-rc2"
OLD_VERSION
=
"v3.0.0-rc1"
if
[
-z
"
$UTILSPATH
"
]
;
then
UTILSPATH
=
"../utils"
fi
.
$UTILSPATH
/patch_header.sh
$*
check_version
$OLD_VERSION
mysql_execute_file
$PATCH_DIR
/patch.sql
update_version
$NEW_VERSION
success
This diff is collapsed.
Click to expand it.
tests/test_0_next_
patch.sql
→
patches/patch20200623-3.0.0rc2/
patch.sql
+
2
−
1
View file @
a213a3fd
...
@@ -15,7 +15,8 @@ ALTER TABLE files ADD COLUMN IF NOT EXISTS (
...
@@ -15,7 +15,8 @@ ALTER TABLE files ADD COLUMN IF NOT EXISTS (
ALTER
TABLE
entities
MODIFY
COLUMN
`role`
enum
(
'RECORDTYPE'
,
'RECORD'
,
'FILE'
,
'DOMAIN'
,
'PROPERTY'
,
'DATATYPE'
,
'ROLE'
,
'QUERYTEMPLATE'
,
'DIRECTORY'
)
COLLATE
utf8_unicode_ci
NOT
NULL
;
ALTER
TABLE
entities
MODIFY
COLUMN
`role`
enum
(
'RECORDTYPE'
,
'RECORD'
,
'FILE'
,
'DOMAIN'
,
'PROPERTY'
,
'DATATYPE'
,
'ROLE'
,
'QUERYTEMPLATE'
,
'DIRECTORY'
)
COLLATE
utf8_unicode_ci
NOT
NULL
;
INSERT
IGNORE
INTO
entities
(
id
,
name
,
description
,
role
,
acl
)
VALUES
(
9
,
"DIRECTORY"
,
"The directory role."
,
"ROLE"
,
0
);
INSERT
IGNORE
INTO
entities
(
id
,
description
,
role
,
acl
)
VALUES
(
9
,
"The directory role."
,
"ROLE"
,
0
);
INSERT
IGNORE
INTO
name_data
(
domain_id
,
entity_id
,
property_id
,
value
,
status
,
pidx
)
VALUES
(
0
,
9
,
20
,
"DIRECTORY"
,
"FIX"
,
0
);
UPDATE
files
SET
storageId
=
path
;
UPDATE
files
SET
storageId
=
path
;
...
...
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