function dblog_update_7003

Account for possible legacy systems where dblog was not installed.

Related topics

File

modules/dblog/dblog.install, line 160

Code

function dblog_update_7003() {
    if (!db_table_exists('watchdog')) {
        db_create_table('watchdog', drupal_get_schema_unprocessed('dblog', 'watchdog'));
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.