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

XMLDB Editor doesn't drop own test tables

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.9.7, 2.0
    • 1.9.6, 2.0
    • Database SQL/XMLDB
    • None

      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.

            stronk7 Eloy Lafuente (stronk7)
            stronk7 Eloy Lafuente (stronk7)
            Nobody Nobody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.