Skip to content

Commit

Permalink
Merge pull request #62 from Panopto/staging
Browse files Browse the repository at this point in the history
2023012400 release PR
  • Loading branch information
jmalmsten-panopto authored Jan 24, 2023
2 parents 0698c2b + 3c54778 commit ab7c06b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
28 changes: 14 additions & 14 deletions db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,6 @@ function xmldb_panoptosubmission_upgrade($oldversion) {
global $DB;
$dbman = $DB->get_manager();

if ($oldversion < 2022070704) {
// Define field cutofftime in the panoptosubmission table.
$table = new xmldb_table('panoptosubmission');
$field = new xmldb_field('cutofftime', XMLDB_TYPE_INTEGER, '10', XMLDB_UNSIGNED, XMLDB_NOTNULL, null, 0, 'timemodified');

// Conditionally launch add field creator_mapping.
if (!$dbman->field_exists($table, $field)) {
$dbman->add_field($table, $field);
}

// Panopto savepoint reached.
upgrade_mod_savepoint(true, 2022070704, 'panoptosubmission');
}

if ($oldversion < 2022090744) {
// Changing type of field grade on table panoptosubmission_submission from int to number.
$table = new xmldb_table('panoptosubmission_submission');
Expand All @@ -63,5 +49,19 @@ function xmldb_panoptosubmission_upgrade($oldversion) {
// Panopto savepoint reached.
upgrade_mod_savepoint(true, 2022090744, 'panoptosubmission');
}

if ($oldversion < 2023012400) {
// Define field cutofftime in the panoptosubmission table.
$table = new xmldb_table('panoptosubmission');
$field = new xmldb_field('cutofftime', XMLDB_TYPE_INTEGER, '10', XMLDB_UNSIGNED, XMLDB_NOTNULL, null, 0, 'timemodified');

// Conditionally launch add field creator_mapping.
if (!$dbman->field_exists($table, $field)) {
$dbman->add_field($table, $field);
}

// Panopto savepoint reached.
upgrade_mod_savepoint(true, 2023012400, 'panoptosubmission');
}
return true;
}
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
defined('MOODLE_INTERNAL') || die();

// The current plugin version (Date: YYYYMMDDXX).
$plugin->version = 2022122000;
$plugin->version = 2023012400;

// Requires this Moodle version - 2.7.
$plugin->requires = 2014051202;
Expand Down

0 comments on commit ab7c06b

Please sign in to comment.