- Issue created by @hoporr
As a test, I did this and it worked:
1) re-exported all pm tables out of the D7 site.
2) re-imported them into the d10 site, with module version 1.0.0-alpha4Data comes up.
So here seems to be a way to get at least the old messages into a D10 site? (with version 1.0.0)
What is missing then is an upgrade path from 1.0.0 to 2.0.0, as the DB tables have changed.
If that is true, this may be easier than a full migration, but maybe a hook_n_update that recasts the data to the new structure?
- ivnish Kazakhstan
Useful information:
Version 1.0 was this is quick and dirty port to D9+. It use the same tables and data as D7 and there is no migration. Just import privatemsg tables from D7 DB to new DB
Version 2.0 was sponsored by anonymous client and this is powerful version with drupal entities. The migration from D7 to 2.0 version will be sponsored later. You can wait or sponsor this early
Also, there is no migration from 1.0 to 2.0
I don't recommend to use 1.0 version. This is dead end version
In our case, I just needed the data in the system for now with a minimal running private message system, so waiting for a migration was not an option. Going to V1 was then a way to move forward, instead of having privatemsg be a stopper for the D10 version.
I could see others to be in the same situation, so I would briefly suggest:
Short of a full migration, the path from D7 to D10 would be:
1) install V1 + DB tables (so you have at least the data plus a minimal system),
2) upgrade to V2 -- that part is missing, but writing an upgrade from V1 to V2 may be easier then a full migration, because you can work within the same D10 system.However that path allows you to at least get the data over now.
- ivnish Kazakhstan
Migration from 1.x to 2.x howto:
1. Backup your database!
2. Upgrade privatemsg to 1.0.0-alpha5
3. Run drush updb / update.php
4. Open your database with PhpMyAdmin/Adminer/etc and check new tables pm_index_old and pm_message_old with your messages data
5. Uninstall privatemsg 1.x module
6. Install privatemsg 2.x module
7. Run drush pmsg1to2
8. Check your imported messages
9. If they ok, remove tables pm_index_old and pm_message_old from database
If you have problems, open new issue with problem details
- ivnish Kazakhstan
Migration from Drupal 6 (6.x-1.5) to 2.x howto:
1. Backup your database!
2. Enable submodule privatemsg_migration_d6
3. Run users migration drush migrate-import d6_user
4. Run drush migrate-import d6_privatemsg_email_notify
4. If you need info about blocked users run drush migrate-import d6_privatemsg_blocked (optional)
5. Run drush migrate-import d6_privatemsg_message
6. Run drush migrate-import d6_privatemsg_thread
7. Check messages in the new site
If you have problems, open new issue with problem details
- ivnish Kazakhstan
Migration from Drupal 6 (6.x-2.x) to 2.x howto:
1. Backup your database!
2. Enable submodule privatemsg_migration_d6_2
3. Run users migration drush migrate-import d6_user
4. Run drush migrate-import d6_privatemsg_email_notify
4. If you need info about blocked users run drush migrate-import d6_privatemsg_blocked (optional)5. Run drush migrate-import d6_privatemsg_message
6. Run drush migrate-import d6_privatemsg_thread
7. If you has file attachments to messages you need to open privatemsg_migration_d6_2/src/Plugin/migrate/destination/PrivatemsgAttachments.php and change "field_attachments" to your new field name for message attachments
8. Run drush migrate-import d6_file
9. Run drush migrate-import d6_privatemsg_attachments
10. Check messages in the new site
If you have problems, open new issue with problem details
- ivnish Kazakhstan
Migration from Drupal 7 (7.x-1.4) to 2.x howto:
1. Backup your database!
2. Enable submodule privatemsg_migration_d7
3. Run users migration drush migrate-import d7_user
4. Run drush migrate-import d7_privatemsg_email_notify
4. If you need info about blocked users run drush migrate-import d7_privatemsg_blocked (optional)
5. Run drush migrate-import d7_privatemsg_message
6. Run drush migrate-import d7_privatemsg_thread
7. Check messages in the new site
If you have problems, open new issue with problem details
- 🇷🇺Russia _cosmos_ Izhevsk, Russia
There is no d7_user migration
Rename to upgrade_d7_user - ivnish Kazakhstan
https://git.drupalcode.org/project/drupal/-/tree/11.0.x/core/modules/use...
d7_user still exists
- 🇷🇺Russia _cosmos_ Izhevsk, Russia
Oh yes, you are right.
Looks like migrate_upgrade module rename all migrations
and add prefix upgrade_d7_user to d7_user migration