Problem/Motivation

Custom date formats created on a Drupal 7 site are not migrated to Drupal 9. These are stored in the "date_formats" table and have the "type" value set to "custom".

Steps to reproduce

Build a Drupal 7 site.
Create custom date formats in admin/config/regional/date-time/formats.
Run the standard upgrade to D9.

Proposed resolution

Provide a migration path for custom date formats.

Remaining tasks

Build a patch/MR.

User interface changes

n/a

API changes

n/a

Data model changes

TBD

Release notes snippet

TBD

Comments

DamienMcKenna created an issue. See original summary.

damienmckenna’s picture

StatusFileSize
new668 bytes

A starting point - some extra custom date formats. Not going to waste time running tests on it.

damienmckenna’s picture

Status: Active » Needs work
StatusFileSize
new2.43 KB

WIP migration plugin. Not running the tests because I don't think it'll work yet, but wanted to make it available for others to work on.

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

quietone’s picture

Issue tags: +migrate-d7-d8

Just updating tags,

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

quietone’s picture

This is a bugsmash daily triage target.

@DamienMcKenna, thanks for making the patch!

This needs confirmation that the changes to the D7 fixture are correct and that the fixture can still be used on a D7 site via the UI. That is, that is it still a working database. This also needs a source plugin test and a migration test.

dinarcon’s picture

Thanks for the patch @DamienMcKenna

Looking at it covers date formats (i.e. l, F j, Y - H:i), but no date types. (e.g. Long / date_format_long). I think date formats and date types are not two separate configuration entities in Drupal 11. The date type can be mapped to the id/label of the DateFormat configuration entity, and the date format mapped to the pattern. This would require querying the date_format_type and date_formats respectively. Thoughts?

quietone’s picture

Status: Needs work » Postponed

The Migrate Drupal Module was approved for removal in #3371229: [Policy] Migrate Drupal and Migrate Drupal UI after Drupal 7 EOL.

This is Postponed. The status is set according to two policies. The Remove a core extension and move it to a contributed project and the Extensions approved for removal policies.

The deprecation work is in #3522602: [meta] Tasks to remove Migrate Drupal module and the removal work in #3522602: [meta] Tasks to remove Migrate Drupal module.

Migrate Drupal will not be moved to a contributed project. It will be removed from core after the Drupal 12.x branch is open.

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.

quietone’s picture

The Migrate Drupal Module and Migrate Drupal UI are deprecated and they are not in Drupal 12.0.0.

Issues for these modules should now be on the 11.x branch. And the changes are limited to critical and major bug fixes. Other changes are allowed at the discretion of the core Release Managers in consultation with the Migrate subsystem maintainers.

quietone’s picture

Status: Postponed » Closed (won't fix)

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.