update_system_schema_requirements()
Returns whether the minimum schema requirement has been satisfied.
array A requirements info array.
function update_system_schema_requirements() { $requirements = array(); $system_schema = drupal_get_installed_schema_version('system'); $requirements['minimum schema']['title'] = 'Minimum schema version'; if ($system_schema >= \Drupal::CORE_MINIMUM_SCHEMA_VERSION) { $requirements['minimum schema'] += array( 'value' => 'The installed schema version meets the minimum.', 'description' => 'Schema version: ' . $system_schema, ); } else { $requirements['minimum schema'] += array( 'value' => 'The installed schema version does not meet the minimum.', 'severity' => REQUIREMENT_ERROR, 'description' => 'Your system schema version is ' . $system_schema . '. Updating directly from a schema version prior to 8000 is not supported. You must <a href="https://www.drupal.org/node/2179269">migrate your site to Drupal 8</a> first.', ); } return $requirements; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!includes!update.inc/function/update_system_schema_requirements/8.1.x