make_db_current

SummerySummery

Updates the database tables to a new schema.

Syntax

make_db_current( string $tables = 'all' )

DescriptionDescription

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

ParametersParameters

$tables

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

Default value: 'all'

SourceSource

File: wp-admin/includes/upgrade.php

					// Add the field to the column list string.
					$index_columns .= '`' . $column_data['fieldname'] . '`';
				}

				// Add the column list to the index create string.
				$index_string .= " ($index_columns)";

				// Check if the index definition exists, ignoring subparts.

ChangelogChangelog

Changelog
Version Description
1.5.0 Introduced.
Scroll to Top