summaryrefslogtreecommitdiffstats
path: root/database/mariadb/PREPARE
diff options
context:
space:
mode:
Diffstat (limited to 'database/mariadb/PREPARE')
-rwxr-xr-xdatabase/mariadb/PREPARE16
1 files changed, 16 insertions, 0 deletions
diff --git a/database/mariadb/PREPARE b/database/mariadb/PREPARE
index c605187332..708765d513 100755
--- a/database/mariadb/PREPARE
+++ b/database/mariadb/PREPARE
@@ -1,2 +1,18 @@
+. ${GRIMOIRE}/FUNCTIONS &&
+
+#
+# This block is required for proper configuration procedure for users with 5.2
+# branch installed after adding multiversion functionality to the spell and
+# prevents previous branch from resetting to a new default value on ``cast -r''
+#
+persistent_read $SPELL MARIADB_BRANCH MARIADB_BRANCH || true &&
+
+if spell_ok $SPELL && [[ -z "$MARIADB_BRANCH" ]]; then
+ persistent_add MARIADB_BRANCH &&
+ local MARIADB_BRANCH="5.2"
+fi &&
+
+prepare_select_branch 5.5 5.3 5.2 &&
+
config_query MARIA_TESTS "Install MariaDB testing utilities?" n &&
config_query MARIA_BENCH "Install MariaDB benchmarking utilities?" n