make_db_current()
最后更新于:2021-11-27 14:39:47
make_db_current( string$tables=’all’)Updates the database tables to a new schema.
参数
- $tables
-
(string) (Optional) Which set of tables to update. Default is ‘all’.
Default value: ‘all’
源文件
文件: gc-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";
}