Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-55143

phpunit fails to update after changing schema

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.6, 3.1.2
    • Fix Version/s: 3.0.7, 3.1.3
    • Component/s: Unit tests
    • Labels:
    • Testing Instructions:
      Hide
      • Init phpunit without a schema.
      • Init phpunit with alternative schema ($CFG->dboptions['dbschema'])
      • Bump version of moodle. (version.php)
      • Remove schema from config.php
      • Init phpunit again (public schema)
      • Add dbschema option back in config.php
      • Init phpunit and it will complete a full init, rather than say nothing happened (This is the change from the previous behaviour)
      Show
      Init phpunit without a schema. Init phpunit with alternative schema ($CFG->dboptions ['dbschema'] ) Bump version of moodle. (version.php) Remove schema from config.php Init phpunit again (public schema) Add dbschema option back in config.php Init phpunit and it will complete a full init, rather than say nothing happened (This is the change from the previous behaviour)
    • Affected Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE
    • Pull Master Branch:

      Description

      After MDL-54947 was fixed it was observed that phpunit doesn't upgrade after version bump.

      1. Init phpunit with alternative schema
      2. Bump version
      3. Remove schema from config.php
      4. Init phpunit (public schema)
      5. Add dbschema option back in config.php
      6. Try init phpunit and nothing will be upgrades...

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/Nov/16