Checks whether the database tables are up to date for the current site.
Description
Parameters
- $force
-
(bool) (Optional) Whether to force install regardless of the check.
Default value: false
Source
File: src/db.php
public function check( $force = false ) { // If the db_version option is set for the site and contains a semantic version number, it is a legacy version. $db_version = get_option( $this->get_prefix() . 'db_version' ); if ( is_string( $db_version ) && false !== strpos( $db_version, '.' ) ) { $legacy_upgrades = new Legacy_Upgrades( $this->get_prefix() ); $legacy_upgrades->upgrade( $db_version ); delete_option( $this->get_prefix() . 'db_version' ); } parent::check( $force ); }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |