Skip to content

Commit

Permalink
Update version.php to upgrade only Kaltura plugins.
Browse files Browse the repository at this point in the history
  • Loading branch information
hilak committed Apr 20, 2022
1 parent d4c66ea commit 21c73db
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 29 deletions.
8 changes: 4 additions & 4 deletions blocks/kalturamediagallery/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2021051702;
$plugin->release = 'Kaltura release 4.3.2';
$plugin->version = 2021051703;
$plugin->release = 'Kaltura release 4.3.3';
$plugin->requires = 2018120300;
$plugin->component = 'block_kalturamediagallery';
$plugin->dependencies = array(
'local_kaltura' => 2021051702,
'local_kalturamediagallery' => 2021051702
'local_kaltura' => 2021051703,
'local_kalturamediagallery' => 2021051703
);
6 changes: 3 additions & 3 deletions filter/kaltura/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
*/
defined('MOODLE_INTERNAL') || die();

$plugin->version = 2021051702; //version date YYYYMMDDXX 10 represent 3.0 for future option to moodle use 2 digit version
$plugin->version = 2021051703; //version date YYYYMMDDXX 10 represent 3.0 for future option to moodle use 2 digit version
$plugin->component = 'filter_kaltura';
$plugin->release = 'Kaltura release 4.3.2';
$plugin->release = 'Kaltura release 4.3.3';
$plugin->requires = 2018120300;
$plugin->maturity = MATURITY_STABLE;
$plugin->dependencies = array(
'local_kaltura' => 2021051702
'local_kaltura' => 2021051703
);
2 changes: 1 addition & 1 deletion incrementVersion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ EXPECTED_ARGS=4

if [ $# -ne $EXPECTED_ARGS ]; then
echo "Missing arguments!"
printf "Usage: \n \t$0 {existing build number} {new biuld number} {existing release number} {new release number}\n\n"
printf "Usage: \n \t$0 {existing build number} {new build number} {existing release number} {new release number}\n\n"
printf "IMPORTANT - the version number should follow these rules - YYYYMMDDII\n"
printf "WHERE: YYYMMDD should be the release date of the major Moodle version for the current branch (e.g. for 3.10 it should be 20201109) and the II should be the build number for the plugin for that version\n"
printf "For example, let's assume the next 3.12 release of moodle happens at 2025/12/01 and then we release a plugin compatible with that version, the version number should be set to 2025120100, and the second version of the plugin for 3.12 should have 2025120101\n"
Expand Down
6 changes: 3 additions & 3 deletions lib/editor/atto/plugins/kalturamedia/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2021051702; // The current plugin version (Date: YYYYMMDDXX).
$plugin->release = 'Kaltura release 4.3.2';
$plugin->version = 2021051703; // The current plugin version (Date: YYYYMMDDXX).
$plugin->release = 'Kaltura release 4.3.3';
$plugin->requires = 2018120300; // Requires this Moodle version.
$plugin->component = 'atto_kalturamedia'; // Full name of the plugin (used for diagnostics).
$plugin->dependencies = array(
'local_kaltura' => 2021051702
'local_kaltura' => 2021051703
);
6 changes: 3 additions & 3 deletions lib/editor/tinymce/plugins/kalturamedia/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2021051702;
$plugin->release = 'Kaltura release 4.3.2';
$plugin->version = 2021051703;
$plugin->release = 'Kaltura release 4.3.3';
// Required Moodle version.
$plugin->requires = 2018120300;
// Full name of the plugin (used for diagnostics).
$plugin->component = 'tinymce_kalturamedia';
$plugin->dependencies = array(
'local_kaltura' => 2021051702
'local_kaltura' => 2021051703
);
6 changes: 3 additions & 3 deletions local/kaltura/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
die('Direct access to this script is forbidden.');
}

$plugin->version = 2021051702;
$plugin->version = 2021051703;
$plugin->component = 'local_kaltura';
$plugin->release = 'Kaltura release 4.3.2';
$plugin->release = 'Kaltura release 4.3.3';
$plugin->requires = 2018120300;
$plugin->maturity = MATURITY_STABLE;

Expand All @@ -53,7 +53,7 @@
}

if (!empty($updatedVersion)) {
$pluginsRecords = $DB->get_records_select('config_plugins', "name = 'version' AND value = '$kalturaPluginVersion'");
$pluginsRecords = $DB->get_records_select('config_plugins', "plugin in ('local_kaltura', 'local_kalturamediagallery', 'local_mymedia', 'atto_kalturamedia','block_kalturamediagallery','filter_kaltura','tinymce_kalturamedia','mod_kalvidassign','mod_kalvidres') AND name = 'version' AND value = '$kalturaPluginVersion'");

foreach ($pluginsRecords as $record) {
$record->value = $updatedVersion;
Expand Down
6 changes: 3 additions & 3 deletions local/kalturamediagallery/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
die('Direct access to this script is forbidden.');
}

$plugin->version = 2021051702;
$plugin->version = 2021051703;
$plugin->component = 'local_kalturamediagallery';
$plugin->release = 'Kaltura release 4.3.2';
$plugin->release = 'Kaltura release 4.3.3';
$plugin->requires = 2018120300;
$plugin->maturity = MATURITY_STABLE;
$plugin->dependencies = array(
'local_kaltura' => 2021051702
'local_kaltura' => 2021051703
);
6 changes: 3 additions & 3 deletions local/mymedia/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
die('Direct access to this script is forbidden.');
}

$plugin->version = 2021051702;
$plugin->version = 2021051703;
$plugin->component = 'local_mymedia';
$plugin->release = 'Kaltura release 4.3.2';
$plugin->release = 'Kaltura release 4.3.3';
$plugin->requires = 2018120300;
$plugin->maturity = MATURITY_STABLE;
$plugin->dependencies = array(
'local_kaltura' => 2021051702
'local_kaltura' => 2021051703
);
6 changes: 3 additions & 3 deletions mod/kalvidassign/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
die('Direct access to this script is forbidden.');
}

$plugin->version = 2021051702;
$plugin->version = 2021051703;
$plugin->component = 'mod_kalvidassign';
$plugin->release = 'Kaltura release 4.3.2';
$plugin->release = 'Kaltura release 4.3.3';
$plugin->requires = 2018120300;
$plugin->cron = 0;
$plugin->maturity = MATURITY_STABLE;
$plugin->dependencies = array(
'local_kaltura' => 2021051702,
'local_kaltura' => 2021051703,
);
6 changes: 3 additions & 3 deletions mod/kalvidres/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
die('Direct access to this script is forbidden.');
}

$plugin->version = 2021051702;
$plugin->version = 2021051703;
$plugin->component = 'mod_kalvidres';
$plugin->release = 'Kaltura release 4.3.2';
$plugin->release = 'Kaltura release 4.3.3';
$plugin->requires = 2018120300;
$plugin->cron = 0;
$plugin->maturity = MATURITY_STABLE;
$plugin->dependencies = array(
'local_kaltura' => 2021051702
'local_kaltura' => 2021051703
);

0 comments on commit 21c73db

Please sign in to comment.