From 56e0a391b85e81398d997dbb6e6febf60bda5e75 Mon Sep 17 00:00:00 2001 From: jmalmsten-panopto Date: Mon, 24 Oct 2016 13:56:08 -0700 Subject: [PATCH 1/2] updated upgrade.php to contain right date for most recent upgrade --- db/upgrade.php | 4 ++-- version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/db/upgrade.php b/db/upgrade.php index dec882c..a2e9cbc 100644 --- a/db/upgrade.php +++ b/db/upgrade.php @@ -95,7 +95,7 @@ function xmldb_block_panopto_upgrade($oldversion = 0) { upgrade_block_savepoint(true, 2015012901, 'panopto'); } - if ($oldversion < 2016081900) { + if ($oldversion < 2016101227) { // Move block global settings to _config_plugin table. // First, move each server configuration. We are not relying here on // block_panopto_server_number to determine number of servers, as there @@ -127,7 +127,7 @@ function xmldb_block_panopto_upgrade($oldversion = 0) { unset_config('block_panopto_async_tasks'); } // Panopto savepoint reached. - upgrade_block_savepoint(true, 2016081900, 'panopto'); + upgrade_block_savepoint(true, 2016101227, 'panopto'); } return true; diff --git a/version.php b/version.php index 11a2ecc..1d10849 100644 --- a/version.php +++ b/version.php @@ -29,7 +29,7 @@ // Plugin version should normally be the same as the internal version. // If an admin wants to install with an older version number, however, set that here. -$plugin->version = 2016101227; +$plugin->version = 2016102400; // Requires this Moodle version - 2.7. $plugin->requires = 2014051200; From 90ec704c72022ec62c5e3632578aa521a2782def Mon Sep 17 00:00:00 2001 From: jmalmsten-panopto Date: Mon, 24 Oct 2016 14:08:46 -0700 Subject: [PATCH 2/2] changed < to <= for people who already upgraded --- db/upgrade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/upgrade.php b/db/upgrade.php index a2e9cbc..67690ec 100644 --- a/db/upgrade.php +++ b/db/upgrade.php @@ -95,7 +95,7 @@ function xmldb_block_panopto_upgrade($oldversion = 0) { upgrade_block_savepoint(true, 2015012901, 'panopto'); } - if ($oldversion < 2016101227) { + if ($oldversion <= 2016101227) { // Move block global settings to _config_plugin table. // First, move each server configuration. We are not relying here on // block_panopto_server_number to determine number of servers, as there