I am working on a project where we need to migrate a D6 site to D8 site on regular basis (like every month). This will be done till the D8 site is ready to launch.
There are 10-15 content types in D6 site along with other regular stuff. I don't want to migrate 3-4 content types (content types, their fields and content in those content types).
I have read this https://www.drupal.org/node/2257723 and know that we can use --configure-only option to create migrations and then we can selectively migrate. As there is lot of other things like content types / revisions / taxonomies etc and we need to execute them in particular order so doing it like this would be bit of pain.
Also it will create content types and fields in those content types as there seems to be no option to configure it.
Any idea on making some changes in migrate_map_d6_node_type / migrate_map_d6_field / migrate_map_d6_field_instance tables before importing the site so that it doesn't import specific content types, their fields and content in those content types?
Or any example code which we can add in custom module for the same?
thanks!
Comments
hook_migrate_prepare_row helped us to skip certain content types
Following code helped us to skip migration of certain content types and content. This code has been written in our custom module file.
Thanks Vaibhav for the help!
Does this also work on D7->
Does this also work on D7-> D10 migration?
Thanks a lot in advance for your reply. Greetings, Martijn