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
f3d56b51
Verified
Commit
f3d56b51
authored
5 months ago
by
Daniel Hornung
Browse files
Options
Downloads
Patches
Plain Diff
Fix: Applying dump upgrade script twice no longer fails.
parent
4a34ffb9
No related branches found
No related tags found
1 merge request
!32
Dump fix script can be applied twice
Pipeline
#57369
passed
5 months ago
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+2
-0
2 additions, 0 deletions
CHANGELOG.md
dump_updates/2024-10-02.dump_fix_mariadb_10_6.sh
+2
-2
2 additions, 2 deletions
dump_updates/2024-10-02.dump_fix_mariadb_10_6.sh
with
4 additions
and
2 deletions
CHANGELOG.md
+
2
−
0
View file @
f3d56b51
...
...
@@ -17,6 +17,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
-
[
SQL dump migration can now be applied twice
](
https://gitlab.indiscale.com/caosdb/src/caosdb-mysqlbackend/-/issues/60
)
: Fixed an error in the regex.
### Security
## [8.0.0] - 2024-10-24 ##
...
...
This diff is collapsed.
Click to expand it.
dump_updates/2024-10-02.dump_fix_mariadb_10_6.sh
+
2
−
2
View file @
f3d56b51
...
...
@@ -35,10 +35,10 @@ set -euo pipefail
IFS
=
$'
\n\t
'
script
=
'
s/Offset INT UNSIGNED) RETURNS varbinary(255)/HeadOffset INT UNSIGNED) RETURNS varbinary(255)/
/^[[:blank:]]+Offset INT UNSIGNED/
s/Offset INT UNSIGNED
\
) RETURNS varbinary
\
(255
\
)/HeadOffset INT UNSIGNED
\
) RETURNS varbinary(255)/
s/LIMIT 1 OFFSET Offset/LIMIT 1 OFFSET HeadOffset/
'
sed
-e
"
$script
"
sed
-E
-e
"
$script
"
unset
script
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