sarjona

qbank version upgrade

Feb 2nd, 2022 (edited)
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.17 KB | None | 0 0
  1. diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php
  2. index 4588ee56781..25ee1b026b6 100644
  3. --- a/lib/db/upgrade.php
  4. +++ b/lib/db/upgrade.php
  5. @@ -3811,7 +3811,7 @@ privatefiles,moodle|/user/files.php';
  6.  
  7.      // Introduce question versioning to core.
  8.      // First, create the new tables.
  9. -    if ($oldversion < 2022012100.03) {
  10. +    if ($oldversion < 2022020200.01) {
  11.          // Define table question_bank_entries to be created.
  12.          $table = new xmldb_table('question_bank_entries');
  13.  
  14. @@ -3903,18 +3903,18 @@ privatefiles,moodle|/user/files.php';
  15.          }
  16.  
  17.          // Main savepoint reached.
  18. -        upgrade_main_savepoint(true, 2022012100.03);
  19. +        upgrade_main_savepoint(true, 2022020200.01);
  20.      }
  21.  
  22. -    if ($oldversion < 2022012100.04) {
  23. +    if ($oldversion < 2022020200.02) {
  24.          // Next, split question records into the new tables.
  25.          upgrade_migrate_question_table();
  26.          // Main savepoint reached.
  27. -        upgrade_main_savepoint(true, 2022012100.04);
  28. +        upgrade_main_savepoint(true, 2022020200.02);
  29.      }
  30.  
  31.      // Finally, drop fields from question table.
  32. -    if ($oldversion < 2022012100.05) {
  33. +    if ($oldversion < 2022020200.03) {
  34.          // Define fields to be dropped from questions.
  35.          $table = new xmldb_table('question');
  36.  
  37. @@ -3957,7 +3957,7 @@ privatefiles,moodle|/user/files.php';
  38.          }
  39.  
  40.          // Main savepoint reached.
  41. -        upgrade_main_savepoint(true, 2022012100.05);
  42. +        upgrade_main_savepoint(true, 2022020200.03);
  43.      }
  44.  
  45.      return true;
  46. diff --git a/version.php b/version.php
  47. index 2886ac30c26..73fa3d3446d 100644
  48. --- a/version.php
  49. +++ b/version.php
  50. @@ -29,7 +29,7 @@
  51.  
  52.  defined('MOODLE_INTERNAL') || die();
  53.  
  54. -$version  = 2022020200.00;              // YYYYMMDD      = weekly release date of this DEV branch.
  55. +$version  = 2022020200.03;              // YYYYMMDD      = weekly release date of this DEV branch.
  56.                                          //         RR    = release increments - 00 in DEV branches.
  57.                                          //           .XX = incremental changes.
  58.  $release  = '4.0dev+ (Build: 20220202)'; // Human-friendly version name
Add Comment
Please, Sign In to add comment