diff --git a/patches/patch20201110-4.0.0-rc1/patch.sh b/patches/patch20201110-4.0.0-rc1/patch.sh new file mode 100755 index 0000000000000000000000000000000000000000..c784a055d2db19d6010647439c603daf9b7a0c27 --- /dev/null +++ b/patches/patch20201110-4.0.0-rc1/patch.sh @@ -0,0 +1,50 @@ +#!/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 +# Copyright (C) 2020 IndiScale GmbH <info@indiscale.com> +# Copyright (C) 2020 Timm Fitschen <t.fitschen@indiscale.com> +# +# 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 +# +# Update mysql schema to version v4.0.0-rc1 +NEW_VERSION="v4.0.0-rc1" +OLD_VERSION="v3.0.0-rc2" + +if [ -z "$UTILSPATH" ]; then + UTILSPATH="../utils" +fi + +. $UTILSPATH/patch_header.sh $* + + +check_version $OLD_VERSION + +# * Add a `direct` column to `archive_isa` table +# * Remove unused procedures: +# * `initNegationFilter` +# * `initConjunctionFilter` +# * `finishNegationFilter` +mysql_execute_file $PATCH_DIR/update_archive_isa.sql + + +update_version $NEW_VERSION + +success +