Migration depuis D6

I try to migrate my old d6 iftbqp.com to d7* *(And it is done with * I'll try to rebuild content types and field, then migrate the old stuff in the new site using feeds_sql module. What needs to be migrated : * Blog * Articles * Bookmarks * Pages * Images (peintures etc) Let's test feeds_sql on the blog migration. We will use the blog module, so we probably don't need to put a lot of fields in the basic "blog" content type. drush en feeds_sql feeds_ui token Ok, apres quelques heures de travail là dessus, voici un exemple de configuration dans un aegir : dans le local.settings.php : <?php $databases['d6']['default'] = array( 'database' => 'dagadi', 'username' => 'dagada', 'password' => 'p4ssw0rd', 'host' => 'localhost', 'port' => '', 'driver' => 'mysql', 'prefix' => '' ); "d6" étant le nom que vous retrouverez dans l'interface feeds_sql. Ne pas se tromper avec le driver, j'ai perdu beaucoup de temps parce que j'avais mis 'mysqli' au lieu de 'mysql' dans mon cas. Let's test Migrate Drupal to Drupal... Downoad the last dev version ( date) and run drush dl migrate-7.x-2.6-beta1 drush dl migrate_d2d-7.x-2.1-beta1+1-dev or last dev version drush en migrate_d2d_ui this should install all you need to start up [...] So, after long hours of trying to understand, reading about how to make things happen I end up with some interresting readings but not much of an example I need. The wizard provided by migrate_d2d_ui is very interresting and goes well out of the box for migrating contents (terms, files, nodes) from source D6 to destination D7. You need to construct the destination BEFORE starting to try the wizard. If I run it like this, I have all my terms created (in my case I just pull all the terms from several vocs to one big voc in the D7), all my blogs, bookmarks, and my different images content types created. The problem is, that the terms are not applied to my nodes, and the files are not attached to the images or file fileds... I'll continue my research for this ultimate example : how to map an image field to another, how to map the terms to the taxonomy reference field. links : * the example module code, http://drupalcode.org/project/migrate_d2d.git/tree/HEAD:/migrate_d2d_example * Typical migrate commands using Drush, https://drupal.org/node/1561820 * Extending migrate_d2d classes, https://drupal.org/node/1819738 * Migration classes, https://drupal.org/node/1006984 * Node migration, https://drupal.org/node/1819712 * Myke Ryan is the guy to follow, https://www.acquia.com/about-us/team/mike-ryan-0 ** https://www.acquia.com/blog/drupal-drupal-data-migration-part-1-basics ** https://www.acquia.com/blog/drupal-drupal-data-migration-part-2-architecture I'll start tomorrow with the latest link To understand * Extending an existing class ? * Overriding a class * Registering a class * put the images in the blog content type, in the bookmark content type and else where * put the terms in the fields where needed (blog, bookmarks, images-simple etc...) I try to ask the devs on drupal.org: https://drupal.org/node/2017951 Installed migrate-extras To reinstall in a blank website drush dis toolbar overlay -y && drush en admin_menu admin_views views_ui && drush cc all drush en iftbqp_content_types migrate_d2d_iftbqpcom migrate_extras migrate_d2d_ui migrate_ui blog Finally ! I've found the link to edit the mappings after days (what a shame). Now The site is complete (minus some details) and I can put it online in place of the D6 one. I'll try to explain the method in an other post.
the better news I had from the drupal since years !) * I'll try to rebuild content types and field, then migrate the old stuff in the new site using feeds_sql module. What needs to be migrated : * Blog * Articles * Bookmarks * Pages * Images (peintures etc) Let's test feeds_sql on the blog migration. We will use the blog module, so we probably don't need to put a lot of fields in the basic "blog" content type." data-share-imageurl="" style="position:fixed;top:0px;right:0px;">

Ajouter un commentaire