Skip to content
Snippets Groups Projects
Verified Commit 4de568ed authored by Timm Fitschen's avatar Timm Fitschen
Browse files

fix version of patch

parent 57e66874
No related branches found
No related tags found
2 merge requests!7Release v5.0.0,!3F cleanup rules
Pipeline #8982 passed
...@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file. ...@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased] ## ## [Unreleased (5.x.x)] ##
### Added ### ### Added ###
...@@ -15,6 +15,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ...@@ -15,6 +15,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Removed ### ### Removed ###
* `getRules` procedure and the `rules` table. The jobs rules are being
configured in the server repository now.
### Fixed ### ### Fixed ###
### Security ### ### Security ###
......
#!/bin/bash #!/bin/bash
# #
# ** header v3.0
# This file is a part of the CaosDB Project. # This file is a part of the CaosDB Project.
# #
# Copyright (C) 2018 Research Group Biomedical Physics, # Copyright (C) 2018 Research Group Biomedical Physics,
...@@ -21,10 +20,11 @@ ...@@ -21,10 +20,11 @@
# You should have received a copy of the GNU Affero General Public License # 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/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
# #
# ** end header
# # Update mysql schema to version v5.0.0
# Update mysql schema to version v4.0.0-rc1 # Drop the 'rules' table.
NEW_VERSION="v4.0.1"
NEW_VERSION="v5.0.0"
OLD_VERSION="v4.0.0" OLD_VERSION="v4.0.0"
if [ -z "$UTILSPATH" ]; then if [ -z "$UTILSPATH" ]; then
......
...@@ -38,7 +38,7 @@ source $UTILSPATH/load_settings.sh ...@@ -38,7 +38,7 @@ source $UTILSPATH/load_settings.sh
source $UTILSPATH/helpers.sh source $UTILSPATH/helpers.sh
echo -n "updating procedures ... " echo -n "updating procedures ... "
temp_proc_sql=$(tempfile --suffix=.sql) temp_proc_sql=$(mktemp --suffix=.sql)
sed -e "s/db_2_0/$DATABASE_NAME/g" procedures/*.sql procedures/query/*.sql \ sed -e "s/db_2_0/$DATABASE_NAME/g" procedures/*.sql procedures/query/*.sql \
> "$temp_proc_sql" > "$temp_proc_sql"
mysql_execute_file "$temp_proc_sql" mysql_execute_file "$temp_proc_sql"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment