Example #1
0
/**
 * Achievements' version updater looks at what the current database version is and
 * runs whatever other code is needed.
 *
 * This is most-often used when the data schema changes, but should also be used
 * to correct issues with Achievements meta-data silently on software update.
 *
 * @since Achievements (3.0)
 */
function dpa_version_updater()
{
    // Get the raw database version
    $raw_db_version = (int) dpa_get_db_version_raw();
    // Chill; there's nothing to do for now!
    // Bump the version
    dpa_version_bump();
    // Delete rewrite rules to force a flush
    dpa_delete_rewrite_rules();
}
Example #2
0
/**
 * Output the Achievements database version directly from the database
 *
 * @since Achievements (3.0)
 */
function dpa_db_version_raw()
{
    echo dpa_get_db_version_raw();
}