#864464 follow-up by David_Rothstein: Move notice about requiring latest version of Drupal so it only comes up the first time update.php is ran.
parent
ae28425926
commit
5e52176157
|
@ -9,6 +9,16 @@
|
||||||
* installation. It is included and used extensively by update.php.
|
* installation. It is included and used extensively by update.php.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Minimum schema version of Drupal 6 required for upgrade to Drupal 7.
|
||||||
|
*
|
||||||
|
* Upgrades from Drupal 6 to Drupal 7 require that Drupal 6 be running
|
||||||
|
* the most recent version, or the upgrade could fail. We can't easily
|
||||||
|
* check the Drupal 6 version once the update process has begun, so instead
|
||||||
|
* we check the schema version of system.module in the system table.
|
||||||
|
*/
|
||||||
|
define('REQUIRED_D6_SCHEMA_VERSION', '6055');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Disable any items in the {system} table that are not core compatible.
|
* Disable any items in the {system} table that are not core compatible.
|
||||||
*/
|
*/
|
||||||
|
@ -120,10 +130,12 @@ function update_prepare_d7_bootstrap() {
|
||||||
// created yet.
|
// created yet.
|
||||||
drupal_bootstrap(DRUPAL_BOOTSTRAP_DATABASE);
|
drupal_bootstrap(DRUPAL_BOOTSTRAP_DATABASE);
|
||||||
|
|
||||||
// Check to make sure that the user is running an up to date version of
|
// If the site has not updated to Drupal 7 yet, check to make sure that it is
|
||||||
// Drupal 6 before proceeding. Note this has to happen AFTER the database
|
// running an up-to-date version of Drupal 6 before proceeding. Note this has
|
||||||
// bootstraps because of drupal_get_installed_schema_version().
|
// to happen AFTER the database bootstraps because of
|
||||||
|
// drupal_get_installed_schema_version().
|
||||||
$system_schema = drupal_get_installed_schema_version('system');
|
$system_schema = drupal_get_installed_schema_version('system');
|
||||||
|
if ($system_schema < 7000) {
|
||||||
$has_required_schema = $system_schema >= REQUIRED_D6_SCHEMA_VERSION;
|
$has_required_schema = $system_schema >= REQUIRED_D6_SCHEMA_VERSION;
|
||||||
$requirements = array(
|
$requirements = array(
|
||||||
'drupal 6 version' => array(
|
'drupal 6 version' => array(
|
||||||
|
@ -134,6 +146,7 @@ function update_prepare_d7_bootstrap() {
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
update_extra_requirements($requirements);
|
update_extra_requirements($requirements);
|
||||||
|
}
|
||||||
|
|
||||||
// Create the registry tables.
|
// Create the registry tables.
|
||||||
if (!db_table_exists('registry')) {
|
if (!db_table_exists('registry')) {
|
||||||
|
|
10
update.php
10
update.php
|
@ -28,16 +28,6 @@ define('DRUPAL_ROOT', getcwd());
|
||||||
*/
|
*/
|
||||||
define('MAINTENANCE_MODE', 'update');
|
define('MAINTENANCE_MODE', 'update');
|
||||||
|
|
||||||
/**
|
|
||||||
* Minimum schema version of Drupal 6 required for upgrade to Drupal 7.
|
|
||||||
*
|
|
||||||
* Upgrades from Drupal 6 to Drupal 7 require that Drupal 6 be running
|
|
||||||
* the most recent version, or the upgrade could fail. We can't easily
|
|
||||||
* check the Drupal 6 version once the update process has begun, so instead
|
|
||||||
* we check the schema version of system.module in the system table.
|
|
||||||
*/
|
|
||||||
define('REQUIRED_D6_SCHEMA_VERSION', '6055');
|
|
||||||
|
|
||||||
function update_selection_page() {
|
function update_selection_page() {
|
||||||
drupal_set_title('Drupal database update');
|
drupal_set_title('Drupal database update');
|
||||||
$elements = drupal_get_form('update_script_selection_form');
|
$elements = drupal_get_form('update_script_selection_form');
|
||||||
|
|
Loading…
Reference in New Issue