Migrate Drupal reports wrong version of Drupal if pointed at a Drupal 9 or 10 database

Created on 27 November 2022, about 2 years ago
Updated 26 April 2024, 8 months ago

Problem/Motivation

Migrate Drupal UI reports the wrong version of Drupal under certain conditions.

Steps to reproduce

In the Migrate Drupal UI screen, if you select Drupal 6 or 7 as the source site, but enter credentials to the current Drupal 10 site, you get this message:

The code in question is checking the Drupal version by reading the key_value table from the provided database credentials entered, which in my Drupal 10 beta site is the following:

As such, the error is correctly triggered, but the wrong version is reported.

This is probably a very rare case, but the error message is confusing and should report the correct version of Drupal (even if this was a mistake).

Proposed resolution

Report the correct version of Drupal, or change the error message to say something along the lines of the version of Drupal detected was newer than 6 or 7, please check your database credentials for the old version and try again (so its more ambiguous).

Remaining tasks

see #21

User interface changes

New error message if the source db is the same as the destination db

API changes

Data model changes

Release notes snippet

๐Ÿ› Bug report
Status

Fixed

Version

11.0 ๐Ÿ”ฅ

Component
Migrationย  โ†’

Last updated about 12 hours ago

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States kevinquillen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024