make_db_current() – Updates the database tables to a new schema.

You appear to be a bot. Output may be restricted

Description

Updates the database tables to a new schema.

By default, updates all the tables to use the latest defined schema, but can also be used to update a specific set of tables in wp_get_db_schema().

Usage

make_db_current( $tables );

Parameters

$tables
( string ) optional default: all – Optional. Which set of tables to update. Default is 'all'.

Returns

void

Source

File name: wordpress/wp-admin/includes/upgrade.php
Lines:

1 to 8 of 8
function make_db_current( $tables = 'all' ) {
  $alterations = dbDelta( $tables );
  echo "<ol>\n";
  foreach ( $alterations as $alteration ) {
    echo "<li>$alteration</li>\n";
  }
  echo "</ol>\n";
}
 

 View on GitHub View on Trac