You are here

function simpletest_update_6200 in SimpleTest 6.2

Upgrade simpletest 5.x-1.x and 6.x-1.x to 6.x-2.1 release.

Provides a basic upgrade path for initial switch to 2.x branch. The update path will not be continued as there is no data that needs to be updated and any further releases should simply un-install and install just like Drupal HEAD development.

File

./simpletest.install, line 218
Install, update and uninstall functions for the simpletest module.

Code

function simpletest_update_6200() {
  $ret = array();

  // Drop any existing SimpleTest tables.
  if (db_table_exists('simpletest')) {
    db_drop_table($ret, 'simpletest');
  }
  if (db_table_exists('simpletest_test_id')) {
    db_drop_table($ret, 'simpletest_test_id');
  }

  // Install most recent schema and files.
  simpletest_install();
  return $ret;
}