From cc06afc6df9a1beea08e1e1b891b4ca01e2bc97f Mon Sep 17 00:00:00 2001 From: Pierre Goiffon Date: Tue, 11 Jul 2023 10:29:37 +0200 Subject: [PATCH] :bookmark: Prepare 3.2.0 version --- core/config.class.inc.php | 2 +- setup/itopdesignformat.class.inc.php | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/core/config.class.inc.php b/core/config.class.inc.php index 58677b075..ebfa48910 100644 --- a/core/config.class.inc.php +++ b/core/config.class.inc.php @@ -29,7 +29,7 @@ define('ITOP_APPLICATION_SHORT', 'iTop'); * * @see ITOP_CORE_VERSION to get iTop core version */ -define('ITOP_VERSION', '3.1.0-dev'); +define('ITOP_VERSION', '3.2.0-dev'); define('ITOP_VERSION_NAME', 'Fullmoon'); define('ITOP_REVISION', 'svn'); diff --git a/setup/itopdesignformat.class.inc.php b/setup/itopdesignformat.class.inc.php index 4894385df..0a6db5d7d 100644 --- a/setup/itopdesignformat.class.inc.php +++ b/setup/itopdesignformat.class.inc.php @@ -109,6 +109,12 @@ class iTopDesignFormat '3.1' => array( 'previous' => '3.0', 'go_to_previous' => 'From31To30', + 'next' => '3.2', + 'go_to_next' => 'Fomr31To32', + ), + '3.2' => array( + 'previous' => '3.1', + 'go_to_previous' => 'From32To31', 'next' => null, 'go_to_next' => null, ), @@ -1075,6 +1081,26 @@ class iTopDesignFormat $this->RemoveNodeFromXPath("/itop_design/classes//class/fields/field/values/value/rank"); } + /** + * Upgrade the format from version 3.1 to 3.2 + * @param \ModelFactory $oFactory + * @return void (Errors are logged) + */ + protected function From31To32($oFactory) + { + // Nothing for now... + } + + /** + * Downgrade the format from version 3.2 to 3.1 + * @param \ModelFactory $oFactory + * @return void (Errors are logged) + */ + protected function From32To31($oFactory) + { + // Nothing for now... + } + /** * @param string $sPath *