
Drupal 7 reached end of life on 5 January 2025, according to the Drupal core release schedule. The upgrade overview states that moving to Drupal 10 or later means migrating into a new site, so there is no in-place update. The real question is whether you migrate what you have, rebuild, or do a bit of both.
On 12 November 2026 the Drupal project announced that Migrate Drupal and Migrate Drupal UI will be removed in Drupal 12 and will not move to contrib. It says legacy sites should migrate to Drupal 11 and then upgrade to Drupal 12. Drupal 6 and 7 sites should complete migrations to Drupal 11 by mid-2028. The schedule lists Drupal 11 end of life as early December 2028.
This guide draws on drupal.org documentation retrieved on 30 November 2026. We haven't run every command here against your stack, so run all examples on a copy or dev site. Advice that isn't from drupal.org is labelled "our recommendation".
Key Takeaways
Migration into a new site is the only upgrade path from Drupal 7. The announcement says to migrate to Drupal 11 first.
Our recommendation: target Drupal 11.4.x or newer. Per the Drupal PSA of 2 November 2026 and the release schedule, the 11.3.x security window ends in the week of 7 December 2026 (UTC).
Score your site against eight criteria to choose between migrate, rebuild and hybrid.
Audit a copy first: modules, fields, text formats, files and known issues.
Use Drush for complex sites. The source database key must be named
migrate.Don't assume contrib coverage. Test Redirect, Pathauto, Metatag, Paragraphs and Webform in a trial run.
Beyond the Step 2 preparation, configure nothing and create no content on the destination until the import has finished.
Migrate, rebuild or hybrid: how do you decide?
Migrate when your content model is sound and most content is worth keeping. Rebuild when the model is messy, the content is mostly obsolete, or you are redesigning anyway. Hybrid means migrating the sound parts and building the rest fresh on Drupal 11. Every path rebuilds the theme, because themes cannot be migrated.
The table is our recommendation, not a drupal.org rule. Drupal's overview does note that manual re-creation is sometimes easier or faster than migrating.
Criterion | Migrate (score 2) | Hybrid (score 1) | Rebuild (score 0) |
|---|---|---|---|
Content model quality | Consistent types and fields | Some types clean, some sprawling | Many unused or overlapping types and fields |
Content volume and value | Most content is current | Archive can be dropped or migrated separately | Mostly obsolete |
Module coverage | Core and contrib have documented paths | A few modules need manual handling | Key functions depend on modules with no path |
Custom code | Little, or easy to rewrite | Rewrite modules, keep the data | Heavy, tied to old architecture |
Theme and design | Design stays, theme rebuilt | Refresh within the same structure | Full redesign planned |
Multilingual | Single language or simple setup | Translation setup needs review | Complex, with Entity Translation on the source |
Editors' workflow | Editors like the current structure | Some authoring changes wanted | Editors want a new authoring model |
Time for trial runs and UAT | Plenty | Limited | None |
A quick scoring method (our recommendation)
Score each row 2, 1 or 0, then add them up. This is a rule of thumb we haven't validated across projects, so adjust it to your context.
- 12 to 16: migrate.
- 6 to 11: hybrid.
- 0 to 5: rebuild.
Two cautions apply. If one business-critical function depends on something with no migration path, resolve that first, whatever the total says. And a low score on time means reduce scope or move the date, not that rebuilding is quicker.
Step 1: Audit the Drupal 7 copy
The Preparation page asks you to:
- Use a backup or copy so the database is in a consistent state.
- Inventory core and contrib modules.
- Read the Known Issues page (last updated 28 November 2022).
- Update the source to its latest minor release.
We found no statement there about cleaning unused content or uninstalling unused modules on the source, so don't treat that as documented.
Make the copies (our recommendation)
All code in this guide is illustrative. Use an option file such as ~/.my.cnf for credentials, not command-line arguments.
# ORIGINAL_DB_NAME is the live database. Only read from it. Never point the migration at it.
mysqldump --single-transaction ORIGINAL_DB_NAME > d7-copy.sql
mysql -e "CREATE DATABASE d7_copy"
mysql d7_copy < d7-copy.sql
rsync -a /path/to/d7/ /path/to/d7-copy/Warning: the migration must only ever use d7_copy, never the original database.
The rsync line copies the Drupal 7 codebase, including sites/default/files, and with it the live settings.php. Repoint the copy's settings.php at d7_copy before you run any command in the copy. drush pm-list also needs a working bootstrap. Copy private files the same way.
The copy also inherits other live endpoints from production. Our recommendation is to neutralise them in the same step: SMTP settings (use a non-sending mail system), search servers, remote file storage and API keys. On the Drupal 7 copy, $conf['cron_safe_threshold'] = 0; stops automatic cron runs (untested here), and the copy host should have no system cron entry.
The dump holds password hashes and email addresses, so store it securely and delete it after the trial.
Our assumption on tooling: use an older Drush (such as 8) on the Drupal 7 copy and a current Drush on Drupal 11. Check the Drush documentation for the pairing that fits your hosting.
Inventory the copy (our recommendation)
If your source uses table prefixes, add them to the table names.
# Drush 8 spells this pm-list
drush pm-list --status=enabled --type=moduleFlag every enabled module that is neither core nor a known contrib project, for example anything under sites/all/modules/custom. Note the active theme too. This list feeds the custom code row in the decision table.
SELECT COUNT(*) FROM users WHERE uid > 0;
SELECT type, COUNT(*) FROM node GROUP BY type;
SELECT COUNT(*) FROM comment;
SELECT COUNT(*) FROM file_managed;
SELECT vid, COUNT(*) FROM taxonomy_term_data GROUP BY vid;
SELECT menu_name, COUNT(*) FROM menu_links GROUP BY menu_name;
SELECT field_name, type, module FROM field_config WHERE deleted = 0;Three further checks match the known limits later in this guide. The first finds duplicate field instances. The second counts text formats used by the body field only. Other text fields store their format in their own tables, so repeat it for each. The third lists every format and its enabled filters.
SELECT field_name, entity_type, bundle, COUNT(*) AS n
FROM field_config_instance
GROUP BY field_name, entity_type, bundle
HAVING n > 1;
SELECT body_format, COUNT(*) FROM field_data_body GROUP BY body_format;
SELECT format, name FROM filter_format;
SELECT format, module, name, status FROM filter WHERE status = 1 ORDER BY format, weight;Review each format's filters against your module inventory. A filter from a module with no Drupal 11 path is a sign that the format may not be recognised.
Save the counts. You will compare them with migrate:status after the trial run. Then compare contrib modules against the Drupal 10 (or later) migrate modules page and each project's Drupal 11 status, and decide what you will drop.
Step 2: Prepare the destination
The destination is a fresh Drupal 11 install with Migrate and Migrate Drupal enabled. The Preparation page says to set file_private_path before running and to enable the core and contrib modules you need first.
composer create-project drupal/recommended-project:^11 destination
cd destination
composer require drush/drush drupal/migrate_upgrade drupal/migrate_plusOur recommendation: install the Drupal 11 site next (for example with drush site:install, untested here), so Drush can bootstrap it. Use a new, empty destination database and check the databases entry in settings.php before running it, because site:install drops existing tables in whatever database settings.php names. Run drush --version to confirm Drush matches your Drupal 11 core.
Migrate Upgrade 4.0.2 (25 June 2024) lists Drupal core >=9 in its metadata. Check the project page for Drupal 11 status. We didn't verify it for Migrate Plus either, so check that project page too. If Composer can't resolve it for your core version, you will find out here.
Migrate Tools 6.1.5 (2 November 2026) works with ^10.5 || ^11 || ^12. Its project page says many migrate commands have been in Drush core since Drush 10.4. Add drupal/migrate_tools if you want migrate:tree, which needs it.
Now enable the modules. For example, drush pm:install migrate migrate_drupal migrate_upgrade migrate_plus. Add migrate_drupal_ui if you want the browser upgrade flow, which includes the review page.
Finally, add the source database key. The Drush upgrade page is explicit: "It is important to name your migrate database key migrate." If you use settings.local.php, your settings.php must include it, or Drupal ignores the key.
Placeholders only, and never commit real credentials. Our recommendation: give this key a database user with SELECT on d7_copy and no grants at all on the original database. It is the strongest guard against the migration touching production.
// settings.local.php. Point at the COPY of the source database, never the original.
$databases['migrate']['default'] = [
'database' => 'd7_copy',
'username' => 'SOURCE_DB_USER',
'password' => 'SOURCE_DB_PASSWORD',
'host' => 'SOURCE_DB_HOST',
'port' => '3306',
'driver' => 'mysql',
'prefix' => '',
];Optional: the review page
With migrate_drupal_ui enabled, the browser upgrade flow includes a review page. Our recommendation is to open it against your copy and compare what it reports with your inventory. You can stop at the review. You don't have to run the import from the browser.
Step 3: Run the upgrade with Drush
The documentation says Drush is useful for complex sites because you can run migrations one by one and roll them back. Our recommendation is to generate the migrations first with --configure-only, inspect them, and only then run the full upgrade. These are the documented examples:
# Safe path: generate migration configuration only
# (https root = public files only, never the live domain; for trials use /path/to/d7-copy)
drush migrate:upgrade --legacy-db-key=migrate --legacy-root=https://example.com --configure-only
# Same, without a settings key (credentials appear on the command line)
drush migrate:upgrade --legacy-db-url=mysql://user:password@server/db --legacy-root=https://example.com --configure-only
# Generate and run everything (throwaway destination only)
drush migrate:upgrade --legacy-db-key=migrateFor a trial run, use the local path of your files copy instead of https://example.com. That is the form that works for private files too.
Then check and run:
drush migrate:status
drush migrate:import <migration_name>
drush migrate:import --all
drush migrate:import --tag='Drupal 7'
drush migrate:import --group=your_module --continue-on-failureRead migrate:messages whenever a migration reports failures. Use --continue-on-failure with --group so one failing migration doesn't stop the rest.
The commands you will use
Command | Alias | Purpose |
|---|---|---|
|
| List migrations and progress |
|
| Run one migration or many |
|
| Undo imported items |
|
| Stop a running migration |
|
| Reset a migration stuck in a running state |
|
| Show errors and warnings per migration |
|
| List source fields |
| none listed | Show dependencies (needs Migrate Tools) |
Check your version. Command spellings and aliases change between Drush versions, and the Customize page below mixes them. Confirm pm:install, its en alias, and the aliases above in the Drush documentation for the version you run.
Step 4: Files and media
Our recommendation is to settle file paths before the first full import. On the Drush page, --legacy-root works like this: "If the files are private then a local file path must be specified, for public files http(s) will work as well." The browser upgrade form asks for public and private file paths instead. Set file_private_path on the destination before you run, as the Preparation page says.
Watch for these documented failure modes:
- Non-standard public path: a known issue says it can break file migration. Remove
settings.phpoverrides before you checkfile_public_path. - File Entity module: the title-as-filename issue needs a custom migration.
- Private files: they need a local path, so copy them locally.
For custom file work, the Migrate API files page covers the file_import and image_import process plugins and migration_lookup. It is marked "needs work", so verify examples against core.
To move Drupal 7 file and image fields into Media, the migrate modules page lists Migrate Media Handler and Migrate File Entities to Media Entities. We haven't verified their Drupal 11 support, so check each project page.
Step 5: Customise migrations
The documented flow turns generated migrations into a custom module:
- Run
drush migrate:upgrade --configure-only. - Run
drush config:export. - Copy the YAML you need from
config/syncinto your module'sconfig/install. - Remove the
uuidkey and adjustid,groupandlabel. - Copy the group file
migrate_plus.migration_group.migrate_drupal_7.yml. It holds the source database settings, so don't commit credentials. - Delete the generated
migrate_plus.*configuration, then install your module. - Run
drush migrate:import --group=your_module --continue-on-failure.
That page is from 2022 and mixes command spellings, so see the version note under Step 3. It renames a field (field_baz to field_zot) in the migration YAML. You can also alter plugins with hook_migration_plugins_alter().
For logic YAML can't express, add a custom process plugin under MODULE/src/Plugin/migrate/process. Alternatively, use hook_migrate_prepare_row() with Row::getSourceProperty() and setSourceProperty(), and throw MigrateSkipRowException to skip a row. Migrate Plus offers a PREPARE_ROW event as an alternative.
Drupal 11 also supports object-oriented hook implementations. We expect the procedural form below to keep working, but search api.drupal.org for hook_migrate_prepare_row to confirm the current signature. This sketch is not production-ready.
use Drupal\migrate\MigrateSkipRowException;
use Drupal\migrate\Plugin\MigrateSourceInterface;
use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate\Row;
function my_migration_migrate_prepare_row(Row $row, MigrateSourceInterface $source, MigrationInterface $migration) {
// Find the real ID with drush migrate:status.
if ($migration->id() === 'your_node_migration_id' && (int) $row->getSourceProperty('status') === 0) {
throw new MigrateSkipRowException('Skipping unpublished item.');
}
}Step 6: Incremental migration
Drupal supports incremental upgrades. The Choosing the upgrade approach page describes three: a one-off run with manual post-steps, incremental runs, and configuration to staging first with content later (which requires Drush). Content can "most probably be migrated without issues", while configuration "will most probably need some manual tasks", with Views as the example.
The Migrate API overview covers two mechanisms. A highwater property imports only rows newer than the last run, and the source must be sorted by that field. Per the overview, track_changes is the slower alternative. Re-run with --update to re-process rows already imported.
The approach page advises against changing configuration on the old site between runs. For custom user migrations, the writing migrations for contributed and custom modules page (13 November 2025) advises removing the uid field to allow incremental runs.
What does not migrate cleanly?
The first table covers documented limits. The second group covers modules where we found nothing documented.
Item | Documented behaviour | What to do (our recommendation) |
|---|---|---|
Views | Not migrated; Migrate: Views helps on a best-effort basis | Rebuild Views on Drupal 11 |
Rules | Not supported | Rebuild the logic |
Unrecognised text formats | Become | Inventory formats and review each format's filters (Step 1), for every text field |
Field Collection | Install Field Collection to Paragraphs before migrating | Check the project page: no stable release, Drupal 11 status not stated |
Entity Translation | Update functions must run on the source | Run them on the copy first |
Duplicate | Can fail widget settings migration | Run the duplicate query in Step 1 |
Plain text fields with conflicting text processing | Skipped | Review skipped fields |
Blocked IPs | Can't be rolled back | Rehearse on a throwaway site |
Themes | Must be rebuilt | Plan design work from day one |
Aliases for a language not enabled | Won't work | Enable the language first |
Webform Migrate 2.0.0-alpha2 (4 August 2025) supports ^10 || ^11 but has no stable release. Treat it as a candidate to test.
For Redirect, Pathauto, Metatag, Paragraphs, Date and Panels, we found no documented Drupal 7 data-migration statement. Pathauto 8.x-1.16, Metatag 2.2.7, Paragraphs 8.x-1.23 and Redirect 8.x-1.13 list ^10 or ^11 support. That is Drupal 11 compatibility, not proof they migrate Drupal 7 data, so test each in a trial run.
We haven't confirmed how user passwords migrate on the pages we retrieved, or whether --update overwrites them. Test logins in the trial run, and compare stored password hashes for a few test accounts before and after a trial --update. Have a password reset flow ready (our recommendation).
Acquia Migrate: Accelerate exists, but its project page describes Drupal 7 to Drupal 9 and we found no Drupal 10 or 11 statement. Verify before relying on it.
When rebuilding wins
Rebuild when the content model is messy, content is mostly obsolete, many modules have no path, or you are redesigning. Our recommendation is to still keep the content you want, using one of two options. One is a content export and import from the Drupal 7 copy. The other is selective migrations, where you run only the content migrations you need.
A rebuild also lets you question the architecture. If you are weighing a decoupled front end, read Drupal CMS vs Payload CMS: choosing the right foundation and when does a headless CMS make sense. We don't suggest a platform change without understanding your architecture and requirements.
Trial migration and cutover checklist (our recommendation)
- Trial run on copies of the source database and files, on a throwaway destination.
- Review
migrate:messagesfor every migration and fix or document each message. - Compare counts: put your Step 1 counts next to the
migrate:statustotals, explain every gap (dropped content, skipped rows), and spot-check a sample of items per type. - Rehearse rollback with
migrate:rollback, including the known non-rollback items. - Check content in context: hidden text from
filter_null, files, aliases, user logins and translations. - Plan redirects from old paths to new URLs, and test them.
- Freeze content or run a delta with the incremental options above.
- Run editor UAT on real tasks.
- Launch, then keep the old site read-only until you are satisfied.
Exit criteria: cutover stays blocked until every unexplained migrate:messages error is explained, counts match or differences are explained, and editors have signed off on the spot-checks.
As we read the announcement, migrating in a dev environment on Drupal 11 and then updating to Drupal 12 before launch is possible. Confirm that reading on the announcement page before planning around it, and test the update as its own step.
Do not do (our recommendation)
- Configure the destination or create content by hand before the import finishes. The Preparation page says to do no destination configuration until the upgrade is complete, and to create nothing manually until all source content is imported.
- Run against the production source database. Use a copy.
- Paste real credentials into commands, tickets or committed configuration.
- Skip the rollback rehearsal.
Where to go next
Score your site, audit the copy, then run a trial migration before committing to a launch date. After launch, keep up with 11.x minor releases using our Drupal 10 to 11 upgrade checklist, which covers the Composer steps. For the wider lifecycle picture, see Drupal 10 end of life: what to do.
Sources
All retrieved 30 November 2026. Dates in brackets are last-updated dates shown on each page, where available.
Documentation
- Upgrading from Drupal 6 or 7: overview (13 January 2025)
- Preparation (1 October 2025)
- Upgrade using Drush (16 January 2025)
- Upgrade using the web browser
- Known issues when upgrading from Drupal 6 or 7 (28 November 2022)
- Customize migrations (28 November 2022)
- Choosing the upgrade approach (24 February 2024)
- Drupal 10 (or later) migrate modules (14 January 2025)
- Migrate API overview (25 April 2025), for highwater and
track_changes - Migrating files and images (16 May 2025)
- Writing migrations for contributed and custom modules (13 November 2025), for the
uidadvice
Announcements and schedule
- Migration support for Drupal 6 and 7 sites will not be in Drupal 12 (12 November 2026)
- Core release cycle schedule (24 November 2026), for the Drupal 7 end of life (5 January 2025) and Drupal 11 dates
- Drupal PSA 2026-11-02, for the 11.x security windows
Project pages (check current release and Drupal 11 status before you commit)
- Migrate Tools
- Migrate Upgrade
- Migrate Plus
- Webform Migrate
- Pathauto
- Metatag
- Paragraphs
- Redirect
- Acquia Migrate: Accelerate
- Field Collection to Paragraphs
Not mapped to a retrieved page: the Drush pm:install and en spellings, command aliases, the hook_migrate_prepare_row() signature, the Migrate Plus PREPARE_ROW event, and the Migrate Tools requirement for migrate:tree. See the Drush documentation and api.drupal.org.




