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

XMLDB Editor doesn't drop own test tables

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.6, 2.0
    • Fix Version/s: 1.9.7, 2.0
    • Component/s: Database SQL/XMLDB
    • Labels:
      None

      Description

      It seems that the tables created by the XMLDB Editor test aren't dropped ever.

      So we need to introduce this at the end of the test action:

          /// Finally drop all the potentially existing test tables
              $table = new XMLDBTable('testtable');
              if (table_exists($table)) {
                  $status = drop_table($table, true, false);
              }
              $table = new XMLDBTable ('anothertest');
              if (table_exists($table)) {
                  $status = drop_table($table, true, false);
              }
              $table = new XMLDBTable ('newnameforthetable');
              if (table_exists($table)) {
                  $status = drop_table($table, true, false);
              }

      To be done after 1.9.6 release.

        Attachments

          Activity

            People

            Assignee:
            stronk7 Eloy Lafuente (stronk7)
            Reporter:
            stronk7 Eloy Lafuente (stronk7)
            Tester:
            Nobody
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              25/Nov/09