From 9162f151759f397fd0de1912aea5dc64db37ea11 Mon Sep 17 00:00:00 2001 From: Giacomo Furlan Date: Tue, 25 Apr 2023 09:51:37 +0300 Subject: [PATCH] Release version 2.2.5 Updates after version 2.2.4: - Introduce Signposting feature - Add statistics collection backend Co-authored-by: Johannes Lares Co-authored-by: Harri Hirvonsalo --- .../upgrades/upgrade_2_2_4_to_2_2_5.py | 19 +++++++++++++++++++ b2share/version.py | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 b2share/modules/upgrade/upgrades/upgrade_2_2_4_to_2_2_5.py diff --git a/b2share/modules/upgrade/upgrades/upgrade_2_2_4_to_2_2_5.py b/b2share/modules/upgrade/upgrades/upgrade_2_2_4_to_2_2_5.py new file mode 100644 index 000000000..eff19f030 --- /dev/null +++ b/b2share/modules/upgrade/upgrades/upgrade_2_2_4_to_2_2_5.py @@ -0,0 +1,19 @@ +"""Upgrade recipe migrating B2SHARE from version 2.2.4 to 2.2.5.""" + + +from __future__ import absolute_import, print_function + +import pkg_resources + +from .common import elasticsearch_index_init + +from ..api import UpgradeRecipe + + +migrate_2_2_4_to_2_2_5 = UpgradeRecipe('2.2.4', '2.2.5') + +# Update Elasticsearch mappings +for step in [elasticsearch_index_init]: + migrate_2_2_4_to_2_2_5.step()(step) + +# There are no changes to the db schema, so no other updates are necessary diff --git a/b2share/version.py b/b2share/version.py index 974c197f2..4efe0a447 100644 --- a/b2share/version.py +++ b/b2share/version.py @@ -21,4 +21,4 @@ """Version number.""" -__version__ = "2.2.4" +__version__ = "2.2.5"