make_db_current( string $tables = 'all' )

Updates the database tables to a new schema.


Description Description

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().


Parameters Parameters

$tables

(string) (Optional) Which set of tables to update. Default is 'all'.

Default value: 'all'


Top ↑

Source Source

File: wp-admin/includes/upgrade.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
1.5.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.