Needs work
Project:
Migrate Extras
Version:
7.x-2.x-dev
Component:
Migrate Extras Features
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
8 Sep 2011 at 23:47 UTC
Updated:
16 Jul 2013 at 11:35 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
okokokok commentedNow reading README.txt "The ideal place to implement migration support for a contributed module is in that module."
Comment #2
okokokok commentedI have some basic code here but I'm not sure how it should be best added to the Scheduler module.
I guess it should be called scheduler.migrate.inc and scheduler.info needs a line files[] = scheduler.migrate.inc but I'm not sure.
Comment #3
mikeryanYes, you should put that into scheduler.migrate.inc, reference it in .info, and also add
Comment #4
vomiand commentedAdded support for scheduler.
Comment #5
jonathan1055 commentedHi Vomiand,
Your patch is creating a new file scheduler.inc in the migrate_extras folder, but according to MikeRyan in #3 this should be in the Scheduler folder.
Also what about the code snippet in #3? Does that go into scheduler.migrate.inc or scheduler.module?
Thanks
Jonathan
(Scheduler support)
[edit: correction to details of what the patch is doing]
Comment #6
jonathan1055 commentedNow that we have a new (and active) co-maintainer for Scheduler, we will be happy to implement this, when it is fully reviewed and tested.
Jonathan
Comment #7
pieter_duijves commentedcorrect me if i'm wrong, but migrating (un)publish dates (for the scheduler module) into Drupal through the migrate module seems to work out-of-the-box for me.
quick proof of concept:
you might need to map your source date to a timestamp in prepareRow(), eg:
Comment #8
brooke_heaton commentedNo I do not see this working out of the box. I do not see any destination fields for publish_on or unpublish_on. I may be missing something.
"publish_timestamp" was used as source field in the "publish_on" mapping but is not in list of source fields
"publish_on" was used as destination field in "publish_timestamp" mapping but is not in list of destination fields
"unpublish_timestamp" was used as source field in the "unpublish_on" mapping but is not in list of source fields
"unpublish_on" was used as destination field in "unpublish_timestamp" mapping but is not in list of destination fields