Skip to content
Snippets Groups Projects
Verified Commit f3d56b51 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

Fix: Applying dump upgrade script twice no longer fails.

parent 4a34ffb9
Branches
No related tags found
1 merge request!32Dump fix script can be applied twice
Pipeline #57369 passed
...@@ -17,6 +17,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ...@@ -17,6 +17,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed ### 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 ### Security
## [8.0.0] - 2024-10-24 ## ## [8.0.0] - 2024-10-24 ##
......
...@@ -35,10 +35,10 @@ set -euo pipefail ...@@ -35,10 +35,10 @@ set -euo pipefail
IFS=$'\n\t' IFS=$'\n\t'
script=' 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/ s/LIMIT 1 OFFSET Offset/LIMIT 1 OFFSET HeadOffset/
' '
sed -e "$script" sed -E -e "$script"
unset script unset script
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment