You are here

function system_update_7081 in Drupal 7

Remove the Drupal 6 default install profile if it is still in the database.

Related topics

File

modules/system/system.install, line 3307
Install, update and uninstall functions for the system module.

Code

function system_update_7081() {

  // Sites which used the default install profile in Drupal 6 and then updated
  // to Drupal 7.44 or earlier will still have a record of this install profile
  // in the database that needs to be deleted.
  db_delete('system')
    ->condition('filename', 'profiles/default/default.profile')
    ->condition('type', 'module')
    ->condition('status', 0)
    ->condition('schema_version', 0)
    ->execute();
}